Skip to content

Commit 22b3a86

Browse files
🔍 test: Add a test for bigger input.
1 parent a1219f9 commit 22b3a86

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: test/src/7.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import test from 'ava';
2+
3+
import {enumerate, _count, isPartition} from '../../src';
4+
5+
test('Check partitions of [7]', (t) => {
6+
const set = [1, 2, 3, 4, 5, 6, 7];
7+
const partitions = [...enumerate(set)];
8+
t.is(partitions.length, _count(1, set.length));
9+
for (const partition of partitions) {
10+
t.true(isPartition(set, partition));
11+
}
12+
});

0 commit comments

Comments
 (0)