Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 506b9f9

Browse files
committed
Add basic intersection test
1 parent 53f5b22 commit 506b9f9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Test/Main.purs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,9 @@ main = do
1818
assert $ S.member 0 set
1919
assert $ S.member 1 set
2020
assert $ S.member 2 set
21+
22+
log "intersection"
23+
do let s1 = S.fromFoldable [1,2,3,4,5]
24+
s2 = S.fromFoldable [2,4,6,8,10]
25+
s3 = S.fromFoldable [2,4]
26+
assert $ S.intersection s1 s2 == s3

0 commit comments

Comments
 (0)