On 6 May 2010 19:32, Alan Ruttenberg alanruttenberg@gmail.com wrote:
That doesn't, unfortunately, solve the concern Mark states above. What we'd like to have is capability to say Assert((5 + 6 + 7) == 18);
well, having a look at the code, that wouldn't be that useful. In many case some Boolean is computed and the assertion tests that Boolean.
With the above example, you could show _how_ the boolean is computed. That assert would print stuff like
"Assertion failed at foobar.java:123: ((5 + 6 + 8) == 18)"
or
"Assertion failed at foobar.java:666: (verifyBlackMagic(1, 2, 3, 4))"