Skip to content

Commit

Permalink
🤖 chore: Lint source files.
Browse files Browse the repository at this point in the history
These changes were automatically generated by a transform whose code can be found at:
  - https://github.com/aureooms/rejuvenate/blob/e2bf2c17f7e41fd818d2de9cb478d2e183f92a0e/src/transforms/sources:initial-lint.js
Please contact the author of the transform if you believe there was an error.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Mar 17, 2021
1 parent 54fff5f commit 81dd234
Show file tree
Hide file tree
Showing 22 changed files with 81 additions and 81 deletions.
6 changes: 3 additions & 3 deletions test/src/base/by.js
Expand Up @@ -14,9 +14,9 @@ test('by', (t) => {
list(C),
[
[0, 1, 2],
[3, undefined, undefined]
[3, undefined, undefined],
],
'n !| N'
'n !| N',
);

const D = by('', 3);
Expand All @@ -31,6 +31,6 @@ test('by (infinite sequences)', (t) => {
t.deepEqual(
list(head(A, 1000)),
list(head(B, 1000)),
'compare to zip output'
'compare to zip output',
);
});
2 changes: 1 addition & 1 deletion test/src/base/first.js
Expand Up @@ -6,7 +6,7 @@ test('first', (t) => {
t.throws(
() => first(range(0)),
{instanceOf: StopIteration},
'first on empty iterator throws StopIteration'
'first on empty iterator throws StopIteration',
);

const it = range(57, 14, -3);
Expand Down
4 changes: 2 additions & 2 deletions test/src/base/frame.js
Expand Up @@ -14,9 +14,9 @@ test('frame', (t) => {
list(C),
[
[0, 1, 2],
[1, 2, 3]
[1, 2, 3],
],
'n !| N'
'n !| N',
);

const D = frame(range(2), 3);
Expand Down
4 changes: 2 additions & 2 deletions test/src/base/last.js
Expand Up @@ -6,7 +6,7 @@ test('last', (t) => {
t.throws(
() => last(range(0)),
{instanceOf: StopIteration},
'last on empty range throws StopIteration'
'last on empty range throws StopIteration',
);

t.is(last(range(57, 14, -3)), 15);
Expand All @@ -22,6 +22,6 @@ test('last', (t) => {
t.throws(
() => last(it),
{instanceOf: StopIteration},
'last on empty iterator throws StopIteration'
'last on empty iterator throws StopIteration',
);
});
4 changes: 2 additions & 2 deletions test/src/base/next.js
Expand Up @@ -8,12 +8,12 @@ test('next', (t) => {
t.throws(
() => next(range(0)),
{instanceOf: StopIteration},
'next on empty iterator throws StopIteration'
'next on empty iterator throws StopIteration',
);
t.is(
next(range(0), dflt),
dflt,
'next on empty iterator with default returns default'
'next on empty iterator with default returns default',
);

const it = range(57, 14, -3);
Expand Down
2 changes: 1 addition & 1 deletion test/src/base/tee.js
Expand Up @@ -17,7 +17,7 @@ test('tee', (t) => {
x([5, 7], 1, [[5, 7]]);
x([5, 7], 2, [
[5, 7],
[5, 7]
[5, 7],
]);
});

Expand Down
2 changes: 1 addition & 1 deletion test/src/extra/closure.js
Expand Up @@ -77,7 +77,7 @@ const A006577 = [
14,
14,
102,
22
22,
];

function macro(t, n, a) {
Expand Down
18 changes: 9 additions & 9 deletions test/src/extra/diagonal.js
Expand Up @@ -9,7 +9,7 @@ import {
count,
take,
product,
sorted
sorted,
} from '../../../src/index.js';

test('diagonal docstring example', (t) => {
Expand All @@ -18,7 +18,7 @@ test('diagonal docstring example', (t) => {
[0, 0],
[0, 1],
[1, 0],
[1, 1]
[1, 1],
];

t.deepEqual(expected, result);
Expand All @@ -35,7 +35,7 @@ test('diagonal finite square', (t) => {
[2, 0],
[1, 2],
[2, 1],
[2, 2]
[2, 2],
];

t.deepEqual(expected, result);
Expand All @@ -55,7 +55,7 @@ test('diagonal finite rectangle (vertical)', (t) => {
[3, 0],
[2, 2],
[3, 1],
[3, 2]
[3, 2],
];

t.deepEqual(expected, result);
Expand All @@ -75,7 +75,7 @@ test('diagonal finite rectangle (horizontal)', (t) => {
[2, 1],
[1, 3],
[2, 2],
[2, 3]
[2, 3],
];

t.deepEqual(expected, result);
Expand All @@ -95,7 +95,7 @@ test('diagonal large but finite', (t) => {
[0, 3],
[1, 2],
[2, 1],
[3, 0]
[3, 0],
];

t.deepEqual(expected, result);
Expand All @@ -114,7 +114,7 @@ test('diagonal infinite', (t) => {
[0, 3],
[1, 2],
[2, 1],
[3, 0]
[3, 0],
];

t.deepEqual(expected, result);
Expand Down Expand Up @@ -166,7 +166,7 @@ test('diagonal finite x infinite', (t) => {
[0, 4],
[1, 3],
[2, 2],
[0, 5]
[0, 5],
];

t.deepEqual(expected, result);
Expand All @@ -188,7 +188,7 @@ test('diagonal infinite x finite', (t) => {
[2, 2],
[3, 1],
[4, 0],
[3, 2]
[3, 2],
];

t.deepEqual(expected, result);
Expand Down
4 changes: 2 additions & 2 deletions test/src/map/chain.js
Expand Up @@ -12,9 +12,9 @@ test('chain', (t) => {
x(
[
[1, 2, 3],
[4, 5, 6]
[4, 5, 6],
],
[1, 2, 3, 4, 5, 6]
[1, 2, 3, 4, 5, 6],
);
x([[1, 2, 3], [], [4, 5, 6]], [1, 2, 3, 4, 5, 6]);
});
4 changes: 2 additions & 2 deletions test/src/map/combinations.js
Expand Up @@ -13,13 +13,13 @@ test('combinations', (t) => {
['A', 'D'],
['B', 'C'],
['B', 'D'],
['C', 'D']
['C', 'D'],
]);
x(range(0, 4, 1), 3, [
[0, 1, 2],
[0, 1, 3],
[0, 2, 3],
[1, 2, 3]
[1, 2, 3],
]);
x(range(0, 4, 1), 4, [[0, 1, 2, 3]]);
x(range(0, 4, 1), 5, []);
Expand Down
4 changes: 2 additions & 2 deletions test/src/map/combinationswithrepetition.js
Expand Up @@ -13,15 +13,15 @@ test('combinationswithrepetition', (t) => {
['A', 'C'],
['B', 'B'],
['B', 'C'],
['C', 'C']
['C', 'C'],
]);
x(range(0, 3, 1), 2, [
[0, 0],
[0, 1],
[0, 2],
[1, 1],
[1, 2],
[2, 2]
[2, 2],
]);
x(range(0, 0, 1), 2, []);
x(range(0, 4, 1), 0, [[]]);
Expand Down
12 changes: 6 additions & 6 deletions test/src/map/enumerate.js
Expand Up @@ -14,8 +14,8 @@ test('enumerate', (t) => {
[
[0, 1],
[1, 4],
[2, 9]
]
[2, 9],
],
);
x(
[1, 4, 9, 16, 25, 36],
Expand All @@ -25,8 +25,8 @@ test('enumerate', (t) => {
[2, 9],
[3, 16],
[4, 25],
[5, 36]
]
[5, 36],
],
);
x(
[1, 4, 9, 16, 25, 36, 49, 64, 81],
Expand All @@ -39,7 +39,7 @@ test('enumerate', (t) => {
[5, 36],
[6, 49],
[7, 64],
[8, 81]
]
[8, 81],
],
);
});
18 changes: 9 additions & 9 deletions test/src/map/group.js
Expand Up @@ -7,15 +7,15 @@ import {
repeat,
ncycle,
next,
range
range,
} from '../../../src/index.js';
import {identity} from '@aureooms/js-operator';

test('group', (t) => {
const x = (key, iterable, expected) => {
t.deepEqual(
list(map(([k, g]) => [k, list(g)], group(key, iterable))),
expected
expected,
);
};

Expand All @@ -27,7 +27,7 @@ test('group', (t) => {
['C', ['C', 'C', 'C', 'C']],
['A', ['A', 'A']],
['B', ['B', 'B']],
['C', ['C', 'C']]
['C', ['C', 'C']],
]);

x(
Expand All @@ -41,8 +41,8 @@ test('group', (t) => {
[2, ['C', 'C', 'C', 'C']],
[0, ['A', 'A']],
[1, ['B', 'B']],
[2, ['C', 'C']]
]
[2, ['C', 'C']],
],
);

x(
Expand All @@ -54,8 +54,8 @@ test('group', (t) => {
[0, ['A', 'A', 'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B']],
[1, ['C', 'C', 'C', 'C']],
[0, ['A', 'A', 'B', 'B']],
[1, ['C', 'C']]
]
[1, ['C', 'C']],
],
);
});

Expand All @@ -73,15 +73,15 @@ test('group keys', (t) => {
return item.charCodeAt(0) - 65;
},
'AAAAAABBBBCCCCAABBCC',
list(ncycle(range(3), 2))
list(ncycle(range(3), 2)),
);

x(
(item) => {
return Math.floor((item.charCodeAt(0) - 65) / 2);
},
'AAAAAABBBBCCCCAABBCC',
list(ncycle(range(2), 2))
list(ncycle(range(2), 2)),
);
});

Expand Down
2 changes: 1 addition & 1 deletion test/src/map/nrepeat.js
Expand Up @@ -16,7 +16,7 @@ test('nrepeat', (t) => {
'ABC',
['A'],
[0, 1, -1],
['A', 'B', 'C']
['A', 'B', 'C'],
]) {
x(item, 0, []);
x(item, 1, [item]);
Expand Down
4 changes: 2 additions & 2 deletions test/src/map/permutations.js
Expand Up @@ -24,7 +24,7 @@ test('permutations', (t) => {
['C', 'D'],
['D', 'A'],
['D', 'B'],
['D', 'C']
['D', 'C'],
]);

x(range(0, 3, 1, []), 3, [
Expand All @@ -33,6 +33,6 @@ test('permutations', (t) => {
[1, 0, 2],
[1, 2, 0],
[2, 0, 1],
[2, 1, 0]
[2, 1, 0],
]);
});
4 changes: 2 additions & 2 deletions test/src/map/product.js
Expand Up @@ -15,7 +15,7 @@ test('product', (t) => {
['C', 'x'],
['C', 'y'],
['D', 'x'],
['D', 'y']
['D', 'y'],
]);

x([[0, 1]], 3, [
Expand All @@ -26,6 +26,6 @@ test('product', (t) => {
[1, 0, 0],
[1, 0, 1],
[1, 1, 0],
[1, 1, 1]
[1, 1, 1],
]);
});
2 changes: 1 addition & 1 deletion test/src/map/repeat.js
Expand Up @@ -16,7 +16,7 @@ test('repeat', (t) => {
'ABC',
['A'],
[0, 1, -1],
['A', 'B', 'C']
['A', 'B', 'C'],
]) {
x(item, 0, []);
x(item, 1, [item]);
Expand Down
2 changes: 1 addition & 1 deletion test/src/map/slice.js
Expand Up @@ -8,7 +8,7 @@ test('slice', (t) => {

t.deepEqual(
list(slice(iterable, start, stop, step)),
list(range(start, stop, step))
list(range(start, stop, step)),
);
};

Expand Down
2 changes: 1 addition & 1 deletion test/src/map/sorted.js
Expand Up @@ -23,7 +23,7 @@ test('sorted', (t) => {
return y;
},
b,
initializer
initializer,
);
};

Expand Down

0 comments on commit 81dd234

Please sign in to comment.