Elixir’s testing library uses meta programming to show the code that fails and what the values were at both sides of a comparison. IE a = 1; b = 2 assert a == b Will fail with error like: Assertion failed, a == b Left is 1 Right is 2 So you don’t have a bunch of assert-functions; you just assert anything and it will spit out a decent error.
In Ecstasy, we built the support directly into the compiler again:
val a = 1;
val b = 2;
assert a == b;
Produces: IllegalState: a == b, a=1, b=2