Chang CL
d9ed6dec0f
first commit
2025-08-24 17:03:19 +08:00
Ahmed Ismail
edf50fdf80
Add credo to the project and:
...
- Run mix credo --all to identify possible code optimizations
- Resolve most of the errors generated by credo such as:
- Numbers larger than 9999 should be written with underscores: 58_127
- Modules should have a @moduledoc tag
- Comparison will always return true
2023-11-10 00:57:21 +05:00
Michael Edoror
a03ab27595
Update 20_comprehensions.ex
...
eachother -> each other typo fix
2023-08-05 13:51:43 -05:00
João Pinheiro
22dc34096d
Reduce needless repetition
2023-07-10 14:08:32 +01:00
João Pinheiro
c3ef2f8e3a
Slight reword for consistency
2023-07-09 23:49:35 +01:00
João Pinheiro
c3224f9f5e
Highlight that Float functions return float
2023-07-09 23:05:05 +01:00
Jay Hayes
f3c3bfb93a
Fix example to actually check message order as desc suggests
...
[chore]
2022-06-21 10:08:19 -05:00
Jay Hayes
f8e654ffd4
Add helpful message when processes koan assertion fails
2022-04-25 08:13:52 -05:00
Jay Hayes
b598df498e
Manually manage process rather than relying on linking
...
This prevents the race condition that was causing issues between koans
as each is run in its own process.
2022-02-10 07:57:49 -06:00
Jay Hayes
11601a6945
Split genserver koans back up
2022-02-10 07:57:30 -06:00
Jay Hayes
20927cc1df
Combine Laptop Genserver examples to avoid process leaking issue
2022-02-01 08:07:45 -06:00
Jay Hayes
b8f7d1b411
Name Agent modules to avoid process leaking between examples
...
🤔 I'm not sure why this was an issue, because the agents are
started with a "link" and each example is run in a process itself...
Seems like we need better isolation between tests.
2022-02-01 08:07:45 -06:00
Jay Hayes
0f97f4ca03
Merge pull request #255 from jechol/enhance/map_sets
...
Remove Enum.fetch usage for MapSet
2020-11-09 09:14:49 -06:00
Jechol Lee
93c490cd59
Change protocol examples
2020-09-23 17:43:34 +09:00
Jechol Lee
fe81c4cdda
Remove Enum.fetch usage for MapSet
2020-09-23 14:03:51 +09:00
James Robey
cd9088a8f0
Fix warning for deprecated Range.range?/1
2020-08-19 12:36:40 +07:00
James Robey
0203181054
remove duplication of struct defaults
2020-08-18 10:51:05 +07:00
James Robey
b06951ef9d
Fixing mismatch in koan description and assertion
2020-08-18 10:47:45 +07:00
Colin Sheaff
8887dbab1e
Use Collectable protocol with an empty map
2020-01-09 22:08:39 -06:00
Colin Sheaff
b443e87707
Remove Windows-style carriage returns from line endings
2020-01-08 14:38:16 -06:00
Lucas Kunzler
aeaf0a72b2
typofix
2019-05-27 17:10:14 +01:00
Jay Hayes
1d0cf88521
Remove duplicative koan
...
This truth is self-evident from the other koans.
2019-04-01 11:56:38 -05:00
Jay Hayes
d79e65cd82
Fix typo
...
h/t @agseijas
[closes #233 ]
2019-01-07 09:03:33 -06:00
Felipe Sere
82b4eb1766
Squash warnings about missing inits
2019-01-05 11:12:39 +00:00
Shannon Oram
9ee4cbec48
Modify koans and descriptions
2018-09-02 20:36:25 +10:00
Shannon Oram
10847816d0
Add new koans for comprehensions
...
Added to partially complete the "Koans for special forms" issue.
https://github.com/elixirkoans/elixir-koans/issues/53
2018-09-02 16:29:47 +10:00
Shannon Oram
362cbf77c0
Rename function. format_result() -> inspirational_quote()
2018-07-11 18:22:18 +10:00
Shannon Oram
678d15de07
Add koan "You can use pattern matching to define [...]"
...
Koan added following comment on Github.
https://github.com/elixirkoans/elixir-koans/issues/222#issuecomment-399979891
[quote]
And, in fact, you can define multiple cases for a function using this sytnax:
```
lolwat = fn
"lol" -> "wat"
_ -> "haha"
end
lolwat.("lol")
# => "wat"
lolwat.("anything")
# => "haha"
lolwat.("rly")
# => "haha"
```
[/quote]
2018-07-11 16:09:33 +10:00
Martino Visintin
b07df7c780
add .formatter.exs + format
2018-05-22 21:46:54 +01:00
Vyacheslav Bikbaev
5247fcfff6
chore: removed trailing whitespaces, added newline at the end of the file
...
Signed-off-by: Vyacheslav Bikbaev <la.sintez@gmail.com >
2018-05-03 22:56:48 +03:00
Felipe Seré
e8bb66540e
Merge pull request #217 from Cohen-Carlisle/reorder-map-set-size
...
introduce MapSet.size/1 earlier
2018-03-03 14:51:57 +00:00
Cohen Carlisle
dd85c85b65
add modulo koan (Kernel.rem/2)
2018-03-02 12:49:55 -05:00
Cohen Carlisle
3a58b49fe6
remove elementary MapSet.size/1 koan
...
size is covered under koan "However, I do not allow duplication"
2018-03-02 10:18:25 -05:00
Cohen Carlisle
0111b0451c
more number koans
2018-03-01 19:13:45 -05:00
Cohen Carlisle
432988014a
introduce MapSet.size/1 earlier
...
specifically, before it is used to show sets do not have duplicates
2018-03-01 14:00:36 -05:00
Felipe Sere
03c6ddc33b
Move pattern matching on structs koan to the later pattern matching module
2018-02-02 08:03:12 +00:00
Felipe Sere
178bb41361
Use more explicit form of function definition for the time being
2018-02-02 07:55:35 +00:00
Felipe Sere
1a62898883
Move koan about keyword lists as arguments to the function koan
2018-02-02 07:55:14 +00:00
Allan Reyes
054f425100
Fix comma placement
2017-11-24 15:47:37 -08:00
Michal Kwiatkowski
586e5ca0b1
Use more succinct syntax for mapping with String.capitalize.
2017-10-27 09:01:36 +02:00
Daniele Megna
1c5cf730d8
Removed useless 'initial' var
...
@person module attribute can be used instead
2017-09-07 14:31:14 +02:00
Felipe Seré
2fc67561d9
Merge pull request #201 from EricAnderson-AAI/master
...
Added GenServer Koans
2017-07-20 07:33:51 +01:00
Eric Anderson
33d0892c7a
GenServers swapped lesson position with Protocols
2017-07-19 19:28:57 -05:00
Eric Anderson
3f1eb8f397
Updated password strings
2017-07-17 21:15:50 -05:00
Eric Anderson
c5a332a2f8
Added remaining handlers to the External API
2017-07-15 01:45:33 -05:00
Eric Anderson
8495a48717
Changed GenServer from BicycleLock to Laptop so examples will flow better
2017-07-15 01:33:16 -05:00
Eric Anderson
cb98ca1c52
Renamed start_server/1 to start_link/1 and updated a password.
2017-07-15 00:49:52 -05:00
Eric Anderson
78d0181cce
Updated 19_genservers.ex w/code review suggestions and updated genservers_koans_test answer values
2017-07-14 15:51:12 -05:00
Eric Anderson
62ab2b9688
Added GenServer Koans
2017-07-13 14:39:15 -05:00
codefupanda
7a9f04dd45
Added pattern matching koan for keyword list
2017-07-11 22:05:07 +05:30