From 903b1b10160a825a41af0908a930cde116f768ff Mon Sep 17 00:00:00 2001 From: c-blake Date: Wed, 3 Jul 2024 14:33:26 +0000 Subject: 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. --- tests/cpp/tcasts.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/cpp') 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 -- cgit 1.4.1-2-gfad0