mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
This test for issue 9739 never needed to depend upon hash order (#23791)
(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.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
output: '''{"vas": "kas", "123": "123"}'''
|
||||
targets: "cpp"
|
||||
"""
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user