(v1, v2)
| 12 | function T(v) { if (!v) { throw new Error('Should be true.'); } }; |
| 13 | function F(v) { if (v) { throw new Error('Should be false.'); } }; |
| 14 | function EQ(v1, v2) { |
| 15 | if (typeof require != 'undefined' && typeof process != 'undefined') //node |
| 16 | require('assert').equal(v1, v2) |
| 17 | else |
| 18 | T (v1 === v2) |
| 19 | } |
| 20 | |
| 21 | function ARY_EQ(a1, a2) { |
| 22 | EQ (a1.length, a2.length) |
no test coverage detected