Jay Hayes
07f24b3298
Fix results from $ mix credo suggest --all --strict
2023-11-10 07:07:51 -06: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
Shashwat Ganesh
8e8efd8def
Move from System.stacktrace to __STACKTRACE__
2020-06-04 22:52:32 +05:30
Martino Visintin
b07df7c780
add .formatter.exs + format
2018-05-22 21:46:54 +01:00
Jay Hayes
41955a16de
Fix unbound variable error in Elixir v1.5.0-dev
...
It's not clear to me why "e in _" ever worked, but this seems to make
things better. Afaict, the point of these clauses are to "rescue
anything".
2017-02-23 10:39:02 -06:00
Jay Hayes
fbf1e139f0
Properly unwrap the koan body the keyword list argument
...
It's a bummer that this isn't tested. I spent just a couple minutes
trying to come up with where to put the test, but gave up for time's
sake.
See https://github.com/elixirkoans/elixir-koans/issues/151 for more
information and screenshots.
2016-12-23 08:54:06 -06:00
Jay Hayes
b277036841
Remove unused private functions
2016-10-17 07:50:16 -05:00
Jay Hayes
ad8b4b5acc
Prefer __MODULE__ internally
2016-06-15 17:53:05 -05:00
Felipe Sere
f5477f0fb0
All modules have an intro.
2016-05-11 21:44:18 +01:00
Felipe Sere
149cc47195
Cleanup how koan modules get their intros
2016-05-10 23:02:23 +01:00
Jay Hayes
7dae31c370
Typo in error message
2016-05-06 13:30:12 -05:00
Uku Taht
a9ee9404ad
Destructure answers in test function
2016-05-04 10:48:14 +01:00
Jay Hayes
39f09e5c30
Handle errors in tests functions as well
...
This allows failures to be passed back to the parent rather than the
koan process just dying and the parent stuck waiting for the result.
2016-04-27 12:14:25 -05:00
Uku Taht
5e7391402e
Stop wrapping ExUnit
2016-04-23 21:39:22 +01:00
Uku Taht
128188cc68
Merge pull request #68 from ukutaht/fix_assert_receive
...
Fixes the reported line for failures using assert_receive
2016-04-11 14:12:30 +01:00
Uku Taht
0b07f61bef
Merge pull request #66 from ukutaht/improve_enum_koans
...
Improve enum koans
2016-04-11 13:54:47 +01:00
Felipe Sere
395182c68d
Fixes the reported line for failures using assert_receive
...
It needed to be turned into a macro and some tinkering with
external vars was needed.
2016-04-10 20:53:10 +01:00
Felipe Sere
6752ec758c
Improve and enforce naming of koans at compile time
2016-04-10 19:14:35 +01:00
Felipe Sere
4dd877e820
Remove unused ExUnit references
2016-04-10 12:22:31 +01:00
Felipe Sere
f564927751
Make private functions private
2016-03-20 19:51:45 +00:00
Felipe Sere
994579f497
Rename and clean the ASTMangler to Blanks
2016-03-20 19:51:45 +00:00
Felipe Sere
023bb62e01
Generate test methods depending on the number of arguments.
2016-03-20 19:51:45 +00:00
Felipe Sere
4897527dab
Use a tuple to get indexed access to a arguments
2016-03-20 19:51:45 +00:00
Uku Taht
031258e086
Use koan assertions to fail the tests
2016-03-12 16:11:32 +02: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
fdb87b529f
Add argument to koan to allow it to be tested
2016-03-12 12:20:07 +00:00
Felipe Sere
5269588e06
Disable warnings about unused variables
2016-03-09 18:33:39 +00:00
Uku Taht
0a66577481
Format runtime errors consistently with assertion errors
2016-03-09 16:40:35 +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
Felipe Sere
c450cc3b19
Koans about processes including infrastructure.
2016-03-08 11:21:41 +00:00
Uku Taht
6f5c00d719
Add support for blanks in assertions
2016-01-08 16:28:45 +00:00
Uku Taht
5dec471422
Extract prefix constant for koans
2015-12-17 01:57:49 +00:00
Uku Taht
ae6b5a7f19
Initial commit
2015-12-15 17:53:27 +00:00