I think that most of the assertions have the expected/actual values swapped. It was originally done this way because the Underscore.js tests were in this order (which is not a good reason).
This should be fixed, but it is mind numbing work...
For example:
assertEquals(_.flatten(result), [1,2,1,2], 'initial works with _.map');
should be:
assertEquals([1,2,1,2], _.flatten(result), 'initial works with _.map');
I think that most of the assertions have the expected/actual values swapped. It was originally done this way because the Underscore.js tests were in this order (which is not a good reason).
This should be fixed, but it is mind numbing work...
For example:
assertEquals(_.flatten(result), [1,2,1,2], 'initial works with _.map');
should be:
assertEquals([1,2,1,2], _.flatten(result), 'initial works with _.map');
See http://wiki.mxunit.org/display/default/Built-In+Assertions