Commit Graph

16 Commits

Author SHA1 Message Date
Iftakhar Husan
70c76693a6 Improve progress bar
This improves progress bar by:
- Adding progress percentage
- Calculating progress bar underline based on the text length of progress bar
2024-03-01 01:01:14 +02: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
Felipe Sere
0f72a98444 ljust is being deprecated 2019-01-05 11:14:54 +00:00
Martino Visintin
b07df7c780 add .formatter.exs + format 2018-05-22 21:46:54 +01:00
Philip MEIER
bad4f8003e Correct spelling of function in Display.ProgressBar 2017-06-08 17:12:57 +01:00
Jay Hayes
77a53e7c13 Fix Elixir 1.4 function paren warnings 2017-01-21 08:18:10 -06: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
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
Felipe Sere
bccb41c280 Removes last outside references to the Colour module 2016-05-15 01:58:57 +02:00
Felipe Sere
ddcd971ede To improve testing, add a layer of indirection around colours. 2016-05-14 00:23:07 +02:00
Felipe Sere
0936ed56e2 Use the new modules 2016-05-14 00:23:05 +02:00
Felipe Sere
af543d1b62 Extracts modules for different sections of the UI 2016-05-14 00:22:41 +02:00