pagraphcontrol/utils/plus-minus.test.js
2019-08-11 00:39:28 +03:00

14 lines
210 B
JavaScript

import test from 'ava';
import { map, range } from 'ramda';
import plusMinus from './plus-minus';
test('plusMinus', t => {
t.deepEqual(
map(plusMinus, range(0, 7)),
[ 0, -1, 1, -2, 2, -3, 3 ],
);
});