We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e443735 commit 2308054Copy full SHA for 2308054
test/src/window.js
@@ -24,3 +24,17 @@ test('window larger than input', (t) => {
24
const D = window(3, range(2));
25
t.deepEqual(list(D), [], 'empty');
26
});
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