Commit Graph

81 Commits

Author SHA1 Message Date
Felipe Sere
9c803ff72c Use prewalk to inject value into AST 2016-03-12 15:07:23 +00:00
Uku Taht
031258e086 Use koan assertions to fail the tests 2016-03-12 16:11:32 +02:00
Felipe Sere
0eb715d4ca Extract answers for Lists 2016-03-12 12:20:07 +00:00
Felipe Sere
3d5da67c8d Improve readability of test harness 2016-03-12 12:20:07 +00:00
Felipe Sere
e48cc261a9 Strip out answers from Equalities 2016-03-12 12:20:07 +00:00
Felipe Sere
4eabc8ac61 Reuse run_koan for testing 2016-03-12 12:20:07 +00:00
Felipe Sere
a6bcd89e7a Split koan into two functions with different arity 2016-03-12 12:20:07 +00:00
Felipe Sere
eb1da4b1fc Show how to test koans for Equalities 2016-03-12 12:20:07 +00:00
Felipe Sere
95c620129d Test multiple koans together 2016-03-12 12:20:07 +00:00
Felipe Sere
fdb87b529f Add argument to koan to allow it to be tested 2016-03-12 12:20:07 +00:00
Felipe Seré
a212f674e0 Merge pull request #40 from ukutaht/add-pin-and-pipe-operators-koans
WIP Feedback
2016-03-12 12:18:08 +00:00
Makis Otman
741e870222 Add pipe and pin operators koans 2016-03-12 12:11:50 +00:00
Felipe Sere
5269588e06 Disable warnings about unused variables 2016-03-09 18:33:39 +00:00
Felipe Seré
cd8afdcd58 Merge pull request #38 from ukutaht/runtime-errors
Format runtime errors consistently with assertion errors
2016-03-09 14:43:37 +00:00
Uku Taht
23d5d87af5 Add a newline before compile error 2016-03-09 16:40:35 +02:00
Uku Taht
3990e7f7e5 Arrange public/private sections in Display 2016-03-09 16:40:35 +02:00
Uku Taht
0a66577481 Format runtime errors consistently with assertion errors 2016-03-09 16:40:35 +02:00
Uku Taht
e0c793638f Merge pull request #39 from ukutaht/force_order
Force koan order using macros and attributes
2016-03-08 22:35:36 +02:00
Felipe Sere
dc64bdf186 Get rid of the koan prefix 2016-03-08 20:27:53 +00:00
Felipe Sere
a85e760e54 Force koan order using macros and attributes 2016-03-08 19:58:37 +00:00
Uku Taht
9a217b47ed Fix compiler warning 2016-03-08 15:16:34 +02:00
Uku Taht
1963fdb46b Merge pull request #29 from ukutaht/process_koans
Koans about processes.
2016-03-08 14:06:35 +02:00
Uku Taht
3029dd48cc Merge pull request #37 from ukutaht/fix_compiler_warnings
Squash compiler warnings.
2016-03-08 14:00:53 +02:00
Felipe Sere
894e0504b9 Get rid of divison by zero 2016-03-08 11:50:58 +00:00
Felipe Sere
4ca9ab44ad Squash compiler warnings. 2016-03-08 11:36:24 +00:00
Felipe Sere
aa980c09fc Adds koans about tasks 2016-03-08 11:23:06 +00:00
Felipe Sere
cf4c24d39c Adds more extensive koans about spawn, spawn_link and spawn_monitor 2016-03-08 11:22:47 +00:00
Uku Taht
cd8e02c68a Rely on stacktraces to get the file and line of last failure 2016-03-08 11:21:41 +00:00
Felipe Sere
95e4d5a182 Minor refactorings to simplify the code. 2016-03-08 11:21:41 +00:00
Felipe Sere
c450cc3b19 Koans about processes including infrastructure. 2016-03-08 11:21:41 +00:00
Felipe Seré
f2b4cec409 Merge pull request #32 from ukutaht/pattern_matching
Start basic pattern matching koans
2016-03-08 11:19:56 +00:00
Uku Taht
0fbbd30b5c Use Map.fetch as the example for error handling 2016-03-08 13:01:12 +02:00
Uku Taht
fee07e99a6 Introduce underscore to mark variables as irrelevant 2016-03-08 13:01:06 +02:00
Uku Taht
8be24a7e75 Assert on tail 2016-03-08 13:00:32 +02:00
Felipe Seré
f078195f1a Merge pull request #33 from ukutaht/fix_options
Fix options
2016-03-08 09:27:08 +00:00
Uku Taht
a4e84f7404 Extract start function for options 2016-03-07 17:58:52 +02:00
Uku Taht
a59ce4f294 Introduce global state for options so we don't have to pass it around 2016-03-07 17:53:41 +02:00
Uku Taht
c105f586bf Don't lie in the depndencies section 2016-03-07 17:29:59 +02:00
Uku Taht
233f80470e Add readme 2016-03-07 17:00:42 +02:00
Uku Taht
1a19c30ec1 Start basic pattern matching koans 2016-03-07 16:45:23 +02:00
Uku Taht
e6aa96bf1a Merge pull request #28 from ukutaht/structs
Basic Koans about structs
2016-03-07 16:01:34 +02:00
Felipe Sere
99a561a6dc Basic Koans about structs 2016-03-07 15:59:57 +02:00
Uku Taht
f4ae28dd35 Merge pull request #26 from ukutaht/arithmetic
Koans for basic arithmetic
2016-03-07 15:59:16 +02:00
Uku Taht
41b883de9e Merge pull request #25 from ukutaht/clear-screen
Clear screen on every run.
2016-03-06 17:12:55 +02:00
Felipe Sere
53815ed759 Clears display on failures based on options map 2016-03-06 14:56:13 +00:00
Felipe Sere
4281c63ab1 Adds module to parse arguments passed to mediate 2016-03-06 14:54:12 +00:00
Felipe Sere
3f0bb9b529 Koans for basic arithmetic 2016-03-06 14:15:10 +00:00
Makis Otman
1b4948f7ef Clear screen on every run 2016-03-06 13:36:34 +00:00
Uku Taht
9454b5eb66 Merge pull request #24 from ukutaht/enum
WIP: Basic koans for the Enum module.
2016-02-11 10:16:58 +00:00
Felipe Sere
b1baf1955b Make the enum koans a tad more entretaining. 2016-02-08 21:14:55 +00:00