Skip to content

Commit 9e49f08

Browse files
🔍 test: Cover Lazy#split.
Fixes #121.
1 parent f01ba65 commit 9e49f08

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/src/github-issue-121.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import test from 'ava';
2+
3+
import {Measures} from '@aureooms/js-measure';
4+
const {COUNTER} = Measures;
5+
6+
import {gt} from '@aureooms/js-predicate';
7+
8+
import {from} from '../../src';
9+
10+
test('Cover Lazy#split', (t) => {
11+
const T = from(COUNTER, 'abcde');
12+
const split = T.splitTree(gt(2), COUNTER.zero());
13+
t.is([...split.left.takeUntil(gt(1))].join(''), 'a');
14+
});

0 commit comments

Comments
 (0)