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

Commit

Permalink
Add basic intersection test
Browse files Browse the repository at this point in the history
  • Loading branch information
hdgarrood committed Dec 23, 2015
1 parent 53f5b22 commit 506b9f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/Test/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ main = do
assert $ S.member 0 set
assert $ S.member 1 set
assert $ S.member 2 set

log "intersection"
do let s1 = S.fromFoldable [1,2,3,4,5]
s2 = S.fromFoldable [2,4,6,8,10]
s3 = S.fromFoldable [2,4]
assert $ S.intersection s1 s2 == s3

0 comments on commit 506b9f9

Please sign in to comment.