Commit Graph

7 Commits

Author SHA1 Message Date
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
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Jay Hayes
4bb0b06471 Format match? failures more elegantly
[#144]
2016-12-23 08:29:04 -06: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
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
Felipe Sere
ddcd971ede To improve testing, add a layer of indirection around colours. 2016-05-14 00:23:07 +02:00
Felipe Sere
af543d1b62 Extracts modules for different sections of the UI 2016-05-14 00:22:41 +02:00