From d83b170e7fffae08b4914e00b74a86c16c645890 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 1 Mar 2010 20:17:37 +0100 Subject: [PATCH] better GTK wrapper --- tests/tester.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/tester.nim b/tests/tester.nim index f1a001a5ad..f15f015b52 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 +