diff --git a/test/src/base/by.js b/test/src/base/by.js index da144df..69f28e5 100644 --- a/test/src/base/by.js +++ b/test/src/base/by.js @@ -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); @@ -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', ); }); diff --git a/test/src/base/first.js b/test/src/base/first.js index 33295ab..1e33943 100644 --- a/test/src/base/first.js +++ b/test/src/base/first.js @@ -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); diff --git a/test/src/base/frame.js b/test/src/base/frame.js index de7ba11..7a61dce 100644 --- a/test/src/base/frame.js +++ b/test/src/base/frame.js @@ -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); diff --git a/test/src/base/last.js b/test/src/base/last.js index 7256a4e..0469990 100644 --- a/test/src/base/last.js +++ b/test/src/base/last.js @@ -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); @@ -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', ); }); diff --git a/test/src/base/next.js b/test/src/base/next.js index 0993f92..206f76c 100644 --- a/test/src/base/next.js +++ b/test/src/base/next.js @@ -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); diff --git a/test/src/base/tee.js b/test/src/base/tee.js index 4e4f828..f1286c7 100644 --- a/test/src/base/tee.js +++ b/test/src/base/tee.js @@ -17,7 +17,7 @@ test('tee', (t) => { x([5, 7], 1, [[5, 7]]); x([5, 7], 2, [ [5, 7], - [5, 7] + [5, 7], ]); }); diff --git a/test/src/extra/closure.js b/test/src/extra/closure.js index 2c8b355..936b2c9 100644 --- a/test/src/extra/closure.js +++ b/test/src/extra/closure.js @@ -77,7 +77,7 @@ const A006577 = [ 14, 14, 102, - 22 + 22, ]; function macro(t, n, a) { diff --git a/test/src/extra/diagonal.js b/test/src/extra/diagonal.js index f0d7414..98b40ac 100644 --- a/test/src/extra/diagonal.js +++ b/test/src/extra/diagonal.js @@ -9,7 +9,7 @@ import { count, take, product, - sorted + sorted, } from '../../../src/index.js'; test('diagonal docstring example', (t) => { @@ -18,7 +18,7 @@ test('diagonal docstring example', (t) => { [0, 0], [0, 1], [1, 0], - [1, 1] + [1, 1], ]; t.deepEqual(expected, result); @@ -35,7 +35,7 @@ test('diagonal finite square', (t) => { [2, 0], [1, 2], [2, 1], - [2, 2] + [2, 2], ]; t.deepEqual(expected, result); @@ -55,7 +55,7 @@ test('diagonal finite rectangle (vertical)', (t) => { [3, 0], [2, 2], [3, 1], - [3, 2] + [3, 2], ]; t.deepEqual(expected, result); @@ -75,7 +75,7 @@ test('diagonal finite rectangle (horizontal)', (t) => { [2, 1], [1, 3], [2, 2], - [2, 3] + [2, 3], ]; t.deepEqual(expected, result); @@ -95,7 +95,7 @@ test('diagonal large but finite', (t) => { [0, 3], [1, 2], [2, 1], - [3, 0] + [3, 0], ]; t.deepEqual(expected, result); @@ -114,7 +114,7 @@ test('diagonal infinite', (t) => { [0, 3], [1, 2], [2, 1], - [3, 0] + [3, 0], ]; t.deepEqual(expected, result); @@ -166,7 +166,7 @@ test('diagonal finite x infinite', (t) => { [0, 4], [1, 3], [2, 2], - [0, 5] + [0, 5], ]; t.deepEqual(expected, result); @@ -188,7 +188,7 @@ test('diagonal infinite x finite', (t) => { [2, 2], [3, 1], [4, 0], - [3, 2] + [3, 2], ]; t.deepEqual(expected, result); diff --git a/test/src/map/chain.js b/test/src/map/chain.js index fbdb5c4..41496a4 100644 --- a/test/src/map/chain.js +++ b/test/src/map/chain.js @@ -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]); }); diff --git a/test/src/map/combinations.js b/test/src/map/combinations.js index 5ec0d8a..3d812ee 100644 --- a/test/src/map/combinations.js +++ b/test/src/map/combinations.js @@ -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, []); diff --git a/test/src/map/combinationswithrepetition.js b/test/src/map/combinationswithrepetition.js index e9750b1..9ee175c 100644 --- a/test/src/map/combinationswithrepetition.js +++ b/test/src/map/combinationswithrepetition.js @@ -13,7 +13,7 @@ test('combinationswithrepetition', (t) => { ['A', 'C'], ['B', 'B'], ['B', 'C'], - ['C', 'C'] + ['C', 'C'], ]); x(range(0, 3, 1), 2, [ [0, 0], @@ -21,7 +21,7 @@ test('combinationswithrepetition', (t) => { [0, 2], [1, 1], [1, 2], - [2, 2] + [2, 2], ]); x(range(0, 0, 1), 2, []); x(range(0, 4, 1), 0, [[]]); diff --git a/test/src/map/enumerate.js b/test/src/map/enumerate.js index 6f0bc90..5aabb87 100644 --- a/test/src/map/enumerate.js +++ b/test/src/map/enumerate.js @@ -14,8 +14,8 @@ test('enumerate', (t) => { [ [0, 1], [1, 4], - [2, 9] - ] + [2, 9], + ], ); x( [1, 4, 9, 16, 25, 36], @@ -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], @@ -39,7 +39,7 @@ test('enumerate', (t) => { [5, 36], [6, 49], [7, 64], - [8, 81] - ] + [8, 81], + ], ); }); diff --git a/test/src/map/group.js b/test/src/map/group.js index 2715b23..4144e0d 100644 --- a/test/src/map/group.js +++ b/test/src/map/group.js @@ -7,7 +7,7 @@ import { repeat, ncycle, next, - range + range, } from '../../../src/index.js'; import {identity} from '@aureooms/js-operator'; @@ -15,7 +15,7 @@ test('group', (t) => { const x = (key, iterable, expected) => { t.deepEqual( list(map(([k, g]) => [k, list(g)], group(key, iterable))), - expected + expected, ); }; @@ -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( @@ -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( @@ -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']], + ], ); }); @@ -73,7 +73,7 @@ test('group keys', (t) => { return item.charCodeAt(0) - 65; }, 'AAAAAABBBBCCCCAABBCC', - list(ncycle(range(3), 2)) + list(ncycle(range(3), 2)), ); x( @@ -81,7 +81,7 @@ test('group keys', (t) => { return Math.floor((item.charCodeAt(0) - 65) / 2); }, 'AAAAAABBBBCCCCAABBCC', - list(ncycle(range(2), 2)) + list(ncycle(range(2), 2)), ); }); diff --git a/test/src/map/nrepeat.js b/test/src/map/nrepeat.js index 2ed3338..4cb60db 100644 --- a/test/src/map/nrepeat.js +++ b/test/src/map/nrepeat.js @@ -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]); diff --git a/test/src/map/permutations.js b/test/src/map/permutations.js index 831bb70..5081896 100644 --- a/test/src/map/permutations.js +++ b/test/src/map/permutations.js @@ -24,7 +24,7 @@ test('permutations', (t) => { ['C', 'D'], ['D', 'A'], ['D', 'B'], - ['D', 'C'] + ['D', 'C'], ]); x(range(0, 3, 1, []), 3, [ @@ -33,6 +33,6 @@ test('permutations', (t) => { [1, 0, 2], [1, 2, 0], [2, 0, 1], - [2, 1, 0] + [2, 1, 0], ]); }); diff --git a/test/src/map/product.js b/test/src/map/product.js index beeba20..b2c6d4c 100644 --- a/test/src/map/product.js +++ b/test/src/map/product.js @@ -15,7 +15,7 @@ test('product', (t) => { ['C', 'x'], ['C', 'y'], ['D', 'x'], - ['D', 'y'] + ['D', 'y'], ]); x([[0, 1]], 3, [ @@ -26,6 +26,6 @@ test('product', (t) => { [1, 0, 0], [1, 0, 1], [1, 1, 0], - [1, 1, 1] + [1, 1, 1], ]); }); diff --git a/test/src/map/repeat.js b/test/src/map/repeat.js index fa3607b..715852b 100644 --- a/test/src/map/repeat.js +++ b/test/src/map/repeat.js @@ -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]); diff --git a/test/src/map/slice.js b/test/src/map/slice.js index a5e33d8..f27f61e 100644 --- a/test/src/map/slice.js +++ b/test/src/map/slice.js @@ -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)), ); }; diff --git a/test/src/map/sorted.js b/test/src/map/sorted.js index 990ad2a..043d2ed 100644 --- a/test/src/map/sorted.js +++ b/test/src/map/sorted.js @@ -23,7 +23,7 @@ test('sorted', (t) => { return y; }, b, - initializer + initializer, ); }; diff --git a/test/src/map/starmap.js b/test/src/map/starmap.js index 95347c4..16aeb4f 100644 --- a/test/src/map/starmap.js +++ b/test/src/map/starmap.js @@ -15,9 +15,9 @@ test('starmap', (t) => { [ [1, 1], [2, 2], - [3, 3] + [3, 3], ], - [1, 4, 9] + [1, 4, 9], ); x( mul, @@ -27,9 +27,9 @@ test('starmap', (t) => { [3, 3], [4, 4], [5, 5], - [6, 6] + [6, 6], ], - [1, 4, 9, 16, 25, 36] + [1, 4, 9, 16, 25, 36], ); x( mul, @@ -42,8 +42,8 @@ test('starmap', (t) => { [6, 6], [7, 7], [8, 8], - [9, 9] + [9, 9], ], - [1, 4, 9, 16, 25, 36, 49, 64, 81] + [1, 4, 9, 16, 25, 36, 49, 64, 81], ); }); diff --git a/test/src/map/zip.js b/test/src/map/zip.js index 00ec4cd..875f6b7 100644 --- a/test/src/map/zip.js +++ b/test/src/map/zip.js @@ -33,48 +33,48 @@ test('zip', (t) => { x( [ [1, 2, 3], - [4, 5, 6] + [4, 5, 6], ], [ [1, 4], [2, 5], - [3, 6] - ] + [3, 6], + ], ); x( [ [1, 2, 3], [4, 5, 6], - [7, 8, 9] + [7, 8, 9], ], [ [1, 4, 7], [2, 5, 8], - [3, 6, 9] - ] + [3, 6, 9], + ], ); x( [ [1, 2, 3], [4, 5, 6], - [7, 8, 9, 10] + [7, 8, 9, 10], ], [ [1, 4, 7], [2, 5, 8], - [3, 6, 9] - ] + [3, 6, 9], + ], ); x( [ [1, 2, 3, 4], [4, 5, 6], - [7, 8, 9] + [7, 8, 9], ], [ [1, 4, 7], [2, 5, 8], - [3, 6, 9] - ] + [3, 6, 9], + ], ); }); diff --git a/test/src/map/ziplongest.js b/test/src/map/ziplongest.js index d8d4930..ee4f747 100644 --- a/test/src/map/ziplongest.js +++ b/test/src/map/ziplongest.js @@ -7,7 +7,7 @@ import { ziplongest, max, chain, - nrepeat + nrepeat, } from '../../../src/index.js'; import {increasing} from '@aureooms/js-compare'; @@ -44,53 +44,53 @@ test('ziplongest', (t) => { w, [ [1, 2, 3], - [4, 5, 6] + [4, 5, 6], ], [ [1, 4], [2, 5], - [3, 6] - ] + [3, 6], + ], ); x( w, [ [1, 2, 3], [4, 5, 6], - [7, 8, 9] + [7, 8, 9], ], [ [1, 4, 7], [2, 5, 8], - [3, 6, 9] - ] + [3, 6, 9], + ], ); x( w, [ [1, 2, 3], [4, 5, 6], - [7, 8, 9, 10] + [7, 8, 9, 10], ], [ [1, 4, 7], [2, 5, 8], [3, 6, 9], - [w, w, 10] - ] + [w, w, 10], + ], ); x( w, [ [1, 2, 3, 4], [4, 5, 6], - [7, 8, 9] + [7, 8, 9], ], [ [1, 4, 7], [2, 5, 8], [3, 6, 9], - [4, w, w] - ] + [4, w, w], + ], ); });