Commit Graph

191 Commits

Author SHA1 Message Date
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
1a62898883 Move koan about keyword lists as arguments to the function koan 2018-02-02 07:55:14 +00:00
Nathan Walker
b32e82b19b Switch over to Elixir option parsing. 2017-07-28 13:03:41 -05:00
Nathan Walker
b2dfc28650 Extract tracker into supervision tree. 2017-07-28 12:56:02 -05:00
Nathan Walker
b71221977c Extract display into supervision tree. 2017-07-28 12:56:02 -05:00
Tom Gurion
588018409d Get lessons order from filenames. Fix #196 2017-07-20 10:01:29 +01: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
3f1eb8f397 Updated password strings 2017-07-17 21:15:50 -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
Tom Gurion
e64394fbaa Add nil example to the atoms koans 2017-04-22 22:59:08 +01:00
Tom Gurion
ca97177b99 Simplify atoms koans. Fix #185 2017-04-22 22:32:29 +01:00
Tom Gurion
1a6449ff1f Remove 'I think I need my number as a char' koan. Fix #176 2017-04-09 10:40:27 +01:00
Tom Gurion
4d667eff61 Add string interpolation koan. Fix #184 2017-04-06 16:36:23 +01:00
Sven Gehring
c708936456 Refactor Koan with slow/fast process example
A combined solution of the examples provided by
@iamvery and myself.
2017-03-22 15:10:21 +01:00
Sven Gehring
2881c95c00 Split koan with race condition into two more logical ones 2017-03-22 10:38:42 +01:00
Jay Hayes
f1fd2a2dad Uncomment 💡 moment about set size 2017-02-19 07:44:59 -06:00
Jay Hayes
4a9800f1f7 Further simplify mapset example with sorted?/1 function 2017-02-19 07:37:57 -06:00
Jay Hayes
ec082f0e72 Fix broken mapset koan test 2017-02-19 07:14:04 -06:00
Jay Hayes
84cd227108 whitespace 2017-02-19 07:13:01 -06:00
Felipe Seré
136e02cafe Merge pull request #162 from srufle/master
Demonstrate put_in to manipulate nested struct values
2017-01-26 20:02:30 +00:00
Jay Hayes
b8d7abe4ea Change definition of anonymous greet
That prevents the confusion of mixing up the anonymous and named
implementations fixed by 55f592.
2017-01-24 08:08:01 -06:00
srufle
55f1648bbd Demonstrate put_in using atoms to manipulate nested values of a nested
Map
2017-01-22 11:15:17 -07:00
srufle
d467985778 Demonstrate update_in to manipulate nested struct values 2017-01-22 11:12:49 -07:00
srufle
516be35df9 Demonstrate put_in to manipulate nested struct values 2017-01-22 10:46:51 -07:00
Felipe Sere
8860a52b98 Better phrase the test that forces do-block unwrapping
See https://github.com/elixirkoans/elixir-koans/issues/151 for more
details.
2017-01-10 09:30:44 +00:00
Felipe Sere
f797ca8e80 Test for single arity failures 2016-12-23 23:53:41 +01:00
Jay Hayes
4bb0b06471 Format match? failures more elegantly
[#144]
2016-12-23 08:29:04 -06:00
Jay Hayes
08973f4b54 Add test for equality failure
This also revealed that the "test painter" has a missing interface,
yellow/0. Fixed!

[#144]
2016-12-23 08:28:56 -06:00
Jay Hayes
482eee1f6b whitespace 2016-12-23 08:27:45 -06:00
Dillon Kearns
490fa050e5 Add koans to practice building anonymous functions using & for arbitrary expressions 2016-10-29 23:05:08 -04:00
Simone D'Amico
9eafe23bc8 Changed order of the answers in map_sets test 2016-07-22 19:34:13 +01:00
Uku Taht
2c9c4e6666 Merge pull request #132 from iamvery/keyword-list-update
Keyword List update
2016-06-13 23:15:33 +01:00
Uku Taht
b9c50fc715 Merge pull request #131 from iamvery/list-koans
List koans
2016-06-13 23:15:19 +01:00
Jay Hayes
e522836f09 Clarify keyword list as options example by including else clause 2016-06-13 09:30:43 -05:00
Jay Hayes
c20436d0c6 Add example for List.wrap(nil)
This better covers the cases of List.wrap
2016-06-13 09:29:36 -05:00
Jay Hayes
f95086b14d Update delete_at example to also use non-numeric values 2016-06-13 09:29:14 -05:00
Jay Hayes
43f832d4e3 Clarify List.delete example
Using numbers in the example tends to confuse the learner about what the
purpose of the second argument to delete is. They might think it's an
index value. This is further exacerbated by the example's value at index
2 being 2. To clear this up, change the example to use non-numeric
values.
2016-06-13 09:27:56 -05:00
Jay Hayes
ec08c7fd7a Add more examples for Integer.parse
- show behavior of parsing with unparsable suffix bits
- show behavior of parsing float as integer
2016-06-13 09:13:46 -05:00
Jay Hayes
2127c9ea27 Update Float.parse example to actually parse a float 2016-06-13 09:13:27 -05:00
Jay Hayes
4674b5b694 Move Float.parse examples right after Integer.parse 2016-06-13 09:12:58 -05:00
Jay Hayes
f9a7f7016c Prefer function output over input
When learning about the behavior of a function, in general the learning
experience is better when provided with the input and asked for the
output.
2016-06-10 11:08:25 -05:00
Mahmut Surekci
48df8ad8af Demonstrating MapSets similarity to List using Enum.fetch. Koan added to demonstrate MapSets being unordered after 32. 2016-05-27 18:44:47 +01:00
Mahmut Surekci
925f6ba2f7 Change order of answers to make unit tests pass 2016-05-27 15:54:48 +01:00
Mahmut Surekci
4f81db44a2 Merge remote-tracking branch 'remotes/upstream/master' into add_map_sets_koans
Conflicts:
	lib/runner.ex
2016-05-27 15:47:49 +01:00
Felipe Seré
c72e60db41 Merge pull request #124 from elixirkoans/protocols
Protocols
2016-05-27 14:09:53 +01:00
Mahmut Surekci
c95f97e968 Merge remote-tracking branch 'remotes/origin/master' into add_map_sets_koans 2016-05-27 13:57:35 +01:00