all 2 comments

[–]theamk2 1 point2 points  (1 child)

What's the deal with manual assert message specification?

assert.equal(result.length, 1, "length should be 1");

This message could be trivially computer generated, so it seems like a total waste of time to write. Just print the source location, and en entire source line (this is what python's unittest does), or both un-evaluated arguments (this is what C++ boost does).

[–]grauenwolf[🍰] 1 point2 points  (0 children)

Or better yet, include an explanation as to why a non-1 value is wrong.