summary refs log tree commit diff stats
path: root/tests/tsets.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tsets.nim')
-rw-r--r--tests/tsets.nim8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/tsets.nim b/tests/tsets.nim
index 2a01292f3..08ab3e54b 100644
--- a/tests/tsets.nim
+++ b/tests/tsets.nim
@@ -34,7 +34,8 @@ type
   TTokTypes* = set[TTokTypeRange]

 

 const

-  toktypes: TTokTypes = {tkSymbol..pred(tkIntLit), tkStrLit..tkTripleStrLit}

+  toktypes: TTokTypes = {TTokTypeRange(tkSymbol)..pred(tkIntLit), 
+                         tkStrLit..tkTripleStrLit}

 

 var

   s: set[char]

@@ -46,11 +47,12 @@ else: write(stdout, "BUG: F ist nicht in s!\n")
 a = {} #{'a'..'z'}

 for x in low(TAZ) .. high(TAZ):

   incl(a, x)

-  if x in a: write(stdout, x & " ")

+  if x in a: nil

   else: write(stdout, "BUG: something not in a!\n")

 

 for x in low(TTokTypeRange) .. high(TTokTypeRange):

   if x in tokTypes:

-    writeln(stdout, "the token '$1' is in the set" % repr(x))

+    nil
+    #writeln(stdout, "the token '$1' is in the set" % repr(x))

 

 #OUT Ha ein F ist in s!