Skip to content

Commit 2308054

Browse files
🧪 test: Cover string input.
1 parent e443735 commit 2308054

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/src/window.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,17 @@ test('window larger than input', (t) => {
2424
const D = window(3, range(2));
2525
t.deepEqual(list(D), [], 'empty');
2626
});
27+
28+
test('string input', (t) => {
29+
const iterable = window(2, 'abcde');
30+
t.deepEqual(
31+
list(iterable),
32+
[
33+
['a', 'b'],
34+
['b', 'c'],
35+
['c', 'd'],
36+
['d', 'e'],
37+
],
38+
'empty',
39+
);
40+
});

0 commit comments

Comments
 (0)