Skip to content

Commit ca07a7a

Browse files
authored
binary-search-tree 1.0.0.3: Add toList of equal element (#636)
exercism/problem-specifications#940
1 parent c04564c commit ca07a7a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

exercises/binary-search-tree/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: binary-search-tree
2-
version: 0.1.0.2
2+
version: 1.0.0.3
33

44
dependencies:
55
- base

exercises/binary-search-tree/test/Tests.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ specs = do
6868
it "iterating over smaller element" $
6969
toList (fromList [int4, 2]) `shouldBe` [2, 4]
7070

71+
it "iterating over equal element" $
72+
toList (fromList [int4, 4]) `shouldBe` [4, 4]
73+
7174
it "iterating over larger element" $
7275
toList (fromList [int4, 5]) `shouldBe` [4, 5]
7376

0 commit comments

Comments
 (0)