[RAMDA] - Moved tests to list category.

This commit is contained in:
Krantisinh Deshmukh
2019-02-01 12:36:10 +05:30
parent 2eb3ca741d
commit fe88e628b8
+17 -17
View File
@@ -1115,6 +1115,23 @@ interface Obj {
R.addIndex(R.map)(squareEnds)([8, 5, 3, 0, 9]); // => [64, 5, 3, 0, 81]
};
() => {
const sampleList = ['a', 'b', 'c', 'd', 'e', 'f'];
R.move(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
R.move(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation
const moveCurried1 = R.move(0, 2);
moveCurried1(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
const moveCurried2 = R.move(0);
moveCurried2(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
const moveCurried3 = R.move(0);
const moveCurried4 = moveCurried3(2);
moveCurried4(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
};
() => {
R.none(R.isNaN, [1, 2, 3]); // => true
R.none(R.isNaN, [1, 2, 3, NaN]); // => false
@@ -2762,20 +2779,3 @@ class Why {
() => {
R.bind(console.log, console);
};
() => {
const sampleList = ['a', 'b', 'c', 'd', 'e', 'f'];
R.move(0, 2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
R.move(-1, 0, sampleList); // => ['f', 'a', 'b', 'c', 'd', 'e'] list rotation
const moveCurried1 = R.move(0, 2);
moveCurried1(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
const moveCurried2 = R.move(0);
moveCurried2(2, sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
const moveCurried3 = R.move(0);
const moveCurried4 = moveCurried3(2);
moveCurried4(sampleList); // => ['b', 'c', 'a', 'd', 'e', 'f']
};