summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorc-blake <c-blake@users.noreply.github.com>2024-07-03 14:33:26 +0000
committerGitHub <noreply@github.com>2024-07-03 16:33:26 +0200
commit903b1b10160a825a41af0908a930cde116f768ff (patch)
tree5825fa2939e668132b7ef9bdf0bc09e619a19d4d
parentfe3039410f9fa637fdd958df4d96272484ebdb86 (diff)
downloadNim-903b1b10160a825a41af0908a930cde116f768ff.tar.gz
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.
-rw-r--r--tests/cpp/tcasts.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/cpp/tcasts.nim b/tests/cpp/tcasts.nim
index d968d87db..80527efff 100644
--- a/tests/cpp/tcasts.nim
+++ b/tests/cpp/tcasts.nim
@@ -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
\ No newline at end of file
+doAssert t.len == 2