Skip to content

Commit

Permalink
This test for issue 9739 never needed to depend upon hash order (#23791)
Browse files Browse the repository at this point in the history
(for `string` or any other key type). Independence is nice to ever
change orders. So, change it to just `len` & a `doAssert` like the other
test in the same file.
  • Loading branch information
c-blake authored Jul 3, 2024
1 parent fe30394 commit 903b1b1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/cpp/tcasts.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
discard """
cmd: "nim cpp $file"
output: '''{"vas": "kas", "123": "123"}'''
targets: "cpp"
"""

Expand All @@ -18,4 +17,4 @@ import tables
var t = initTable[string, string]()
discard t.hasKeyOrPut("123", "123")
discard t.mgetOrPut("vas", "kas")
echo t
doAssert t.len == 2

0 comments on commit 903b1b1

Please sign in to comment.