2 ms·
Fine, how about this: function testCase() { // do some stuff assert(a>=b, 'less pictures than participants', a, b); // do some stuff ass
by EGreg 13y ago
Fine, how about this:
function testCase() {
// do some stuff
assert(a>=b, 'less pictures than participants', a, b);
// do some stuff
assert(cool.length, 'cool is empty');
}
output:
"testCase: less pictures than participants (3, 4)"
"testCase: cool is empty"
easy, no?
- dragonwriter 13y agoIf you want to write your own one-function test microframework on that model, feel free; I don't see any reason to prefer using it to existing frameworks, whether xUnit-style or spec-style.