Commit Graph

8 Commits

Author SHA1 Message Date
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