pagraphcontrol/utils/plus-minus.test.js
2018-11-08 20:39:54 +03:00

14 lines
197 B
JavaScript

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