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
Uku Taht
53614ac195
Merge pull request #130 from iamvery/number-koans
...
Number koans
2016-06-13 23:15:00 +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
Felipe Seré
8ccd83677e
Merge pull request #128 from iamvery/string-examples
...
Prefer function output over input
2016-06-12 22:44:49 +02:00
Jay Hayes
c6f2738fc7
Refactor error expansion to locate errors in koan module
...
The previous strategy wasn't robust enough to detect typos in function
calls. For example, if you misremembered String.duplicate/2 as
String.repeat/2 the koan runner would hang and have to be restarted.
This is because the stacktrace for an error like that doesn't have line
numbers. To avoid the problem, we detect the first pieces of the
stracktrace that is in the koan module. I can't decide if that's a
perfect solution, but it seemed to work in my testing. Hoping to get
other's feedback.
2016-06-11 08:43:37 -05:00
Jay Hayes
43c2bbdd71
Show left and right hand values when equality fails
...
For assertions that contain function calls, displaying just the
expression is not helpful. For e.g.
Assertion failed
String.upcase("foo") == "Foo"
The learner is given no extra information to help them learn. Sure they
might consult the documentation (and should!), but perhaps a better
experience would be for us to inform the learner about the values it
encountered.
Assertion failed
String.upcase("foo") == "Foo"
left: "FOO"
right: "Foo"
Learner: 💡 ah hah! it upcases the whole string! 💫
2016-06-10 11:39:39 -05:00
Jay Hayes
ae2e7feeac
whitespace
2016-06-10 11:39:17 -05:00
Jay Hayes
efb3d116c7
Remove unneeded function
...
It's only used in one place, no need for the abstraction currently.
2016-06-10 11:38:30 -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
Uku Taht
3c217073f5
Merge pull request #125 from rianrainey/remove-numbers-trailing-whitespace
...
Remove trailing whitespace
2016-06-08 10:23:59 +01:00
Uku Taht
64bb5ebc78
Merge pull request #126 from rianrainey/fix-grammar
...
Fix grammar omission
2016-06-08 10:23:44 +01:00
Rian Rainey
31332cfdbb
Remove trailing whitespace
2016-06-06 18:34:11 -05:00
Rian Rainey
25f9be439c
Fix grammar omission
2016-06-06 06:49:21 -05:00
Felipe Seré
a836488428
Merge pull request #123 from msurekci/add_map_sets_koans
...
Adding new koans for map sets
2016-05-27 19:09:37 +01: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
317ea5d208
Reposition MapSets koans. Reposition some of the koans to make it clear why MapSets are interesting.
2016-05-27 15:51:45 +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 Sere
6e99c89622
Adds a contributors file.
2016-05-27 14:26:57 +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
gemcfadyen
d9ee4ccea8
Adds an introduction
2016-05-27 10:24:35 +01:00
gemcfadyen
5b2ff206fa
update the default case to use a generic message
2016-05-27 10:17:21 +01:00
gemcfadyen
e9ab727448
Adds a koan to demonstrate the use of deriving a default behaviour
2016-05-27 10:09:33 +01:00
Felipe Seré
15e0cb55c2
Merge pull request #122 from msurekci/master
...
Add koans for integers
2016-05-26 22:11:30 +01:00
Mahmut Surekci
317ccc790f
James Bond reference in the intro title
2016-05-26 18:48:46 +01:00
Mahmut Surekci
ba673557cf
Remove blank line and intro title changed
2016-05-26 10:33:46 +01:00
gemcfadyen
143b2bb7ff
collapse two koans into one
2016-05-26 09:14:53 +01:00
Mahmut Surekci
5e9e5e3891
Adding new koans for map sets
2016-05-26 02:02:20 +01:00
Mahmut Surekci
458d18494e
Added some koans for the Range module
2016-05-25 23:11:56 +01:00
gemcfadyen
c970ed01dd
Protocol examples updated to use Structs
2016-05-25 17:44:42 +01:00
Mahmut Surekci
40174320f9
fix failing tests - for real this time :D
2016-05-25 13:45:10 +01:00
Mahmut Surekci
57d1b5399a
fix failing test
2016-05-25 12:09:36 +01:00
Mahmut Surekci
14858cd497
reposition numbers koans in the runner.ex file
2016-05-25 12:07:40 +01:00
Mahmut Surekci
a57ba3da2d
Add koans for floats, rename to numbers koans, reposition on the list
2016-05-25 12:06:52 +01:00
Mahmut Surekci
9baecdf031
Add a test for hexidecimal parsing
2016-05-24 19:43:00 +01:00
Mahmut Surekci
1f9d6a07cc
fixing failing test
2016-05-24 18:00:16 +01:00
Mahmut Surekci
6e9dc8b328
fix formatting
2016-05-24 17:31:53 +01:00
Mahmut Surekci
cc3232a31f
Added very basic koans for integers
2016-05-24 17:29:18 +01:00
Felipe Seré
65553d966f
Merge pull request #121 from kamidev/master
...
Make Sigil tests run
2016-05-22 20:09:22 +01:00
kamidev
753550cded
Add Sigils to test runner
2016-05-22 19:24:38 +02:00
Felipe Seré
0426aa40a3
Merge pull request #120 from elixirkoans/improve-pattern-matching
...
Move pinning to the back of the kaon and enhance example
2016-05-20 13:28:49 +01:00
Felipe Sere
74b6e06ddf
Fix typos and bring back the failing pattern match.
2016-05-20 08:02:59 +01:00