summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xtests/tester.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/tester.nim b/tests/tester.nim
index f1a001a5a..f15f015b5 100755
--- a/tests/tester.nim
+++ b/tests/tester.nim
@@ -171,8 +171,21 @@ proc main(options: string) =
 
 proc reject(options: string) =  
   ## handle all the tests that the compiler should reject
+  const csvFile = "tests/reject/spec.csv"
+  var p: TCsvParser
+  
+  var s = newFileStream(csvFile, fmRead)
+  if s == nil: quit("cannot open the file" & csvFile)
+  p.open(s, csvFile, separator=';', skipInitialSpace=true)
+  while readRow(p):
+    for val in items(x.row):
+      Echo "##", val, "##"
+  close(p)
+  
   
 proc accept(options: string) = 
+  nil
+