summary refs log tree commit diff stats
path: root/tests/distinct
diff options
context:
space:
mode:
authorKhaled Hammouda <khaledh@gmail.com>2022-06-22 06:36:30 -0400
committerGitHub <noreply@github.com>2022-06-22 12:36:30 +0200
commitcaf6aff06b6dd36ef0bbe8c1f8b527952790e208 (patch)
treec172dad14234bd2ba20c386b28d55112275d0379 /tests/distinct
parent3cb2d7af0591b12044d4be20dfb6d7f7ff79a4ff (diff)
downloadNim-caf6aff06b6dd36ef0bbe8c1f8b527952790e208.tar.gz
Fix distinct requiresInit test and manual (#19901)
fix distinct test and manual
Diffstat (limited to 'tests/distinct')
-rw-r--r--tests/distinct/tdistinct.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/distinct/tdistinct.nim b/tests/distinct/tdistinct.nim
index dd8237854..8ec083020 100644
--- a/tests/distinct/tdistinct.nim
+++ b/tests/distinct/tdistinct.nim
@@ -135,11 +135,11 @@ block tRequiresInit:
   reject:
     var s: DistinctString
     s = "test"
-    doAssert s == "test"
+    doAssert string(s) == "test"
 
   accept:
-    let s = "test"
-    doAssert s == "test"
+    let s = DistinctString("test")
+    doAssert string(s) == "test"
 
 block: #17322
   type