tape-arr-equals
v2.1.2
Published
Tape extension that adds array equality
Downloads
2
Readme
tape-arr-equals
Tape extension that adds array equality to tape.
Install
~ npm install tape-arr-equals
Usage
Checkout tests/index.test.js
import addAssertions from 'extend-tape';
import arrEquals from '..';
import tape from 'tape';
const test = addAssertions(tape, {arrEquals});
test(`------------ tape-arr-equals module test ------------`, (swear) => {
swear.plan(2);
swear.comment(`---- tape-arr-equals module test: arrEq ----`);
swear.arrEquals([0, 1, 2, 3], [0, 1, 2, 3], `equal arrays are equal`);
swear.arrEquals([0, 1, 2, 3], [1, 2, 3, 0], `different order is equal`);
});