Skip to content

Commit a65375f

Browse files
committed
Fix typo in HashMap tests
1 parent bded471 commit a65375f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/lib/HashMap.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2025-09-05T06:43:01.771Z [RTM] info: Skipping network creation. Observe that all external IO operations will yield a runtime error.
1+
2025-10-24T12:16:41.706Z [RTM] info: Skipping network creation. Observe that all external IO operations will yield a runtime error.
22
begin HashMap
33
begin empty
44
[ TEST ] it is null [ PASS ] it is null
@@ -52,7 +52,7 @@
5252
[ TEST ] it returns [42] for findOpt 1 [ PASS ] it returns [42] for findOpt 1
5353
[ TEST ] it returns 42 for find 1 [ PASS ] it returns 42 for find 1
5454
end 
55-
begin fromList [(1,42), (0,21)]
55+
begin fromList [(0,21), (1,42)]
5656
[ TEST ] it is not null [ PASS ] it is not null
5757
[ TEST ] it has size 2 [ PASS ] it has size 2
5858
[ TEST ] it contains 0 [ PASS ] it contains 0

tests/lib/HashMap.trp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ let (* Hash based on the lowest ten bits only. This way we can easily force vari
8282
]
8383
end,
8484
let val m = fromList [(0,21),(1,42)]
85-
in Unit.group "fromList [(1,42), (0,21)]" [
85+
in Unit.group "fromList [(0,21), (1,42)]" [
8686
Unit.it "is not null" (Unit.isFalse (HashMap.null m))
8787
, Unit.it "has size 2" (Unit.isEq 2 (HashMap.size m))
8888
, Unit.it "contains 0" (Unit.isTrue (HashMap.mem m 0))

0 commit comments

Comments
 (0)