diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-11-16 12:43:05 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:29 +0100 |
commit | 534601637a9189354c92532c0ef273a89153092d (patch) | |
tree | c4793d10398c5ededb12eb1bfe257bd652b1124d /tests | |
parent | 9c2365d5c2229f327d19262894995047a357e252 (diff) | |
download | Nim-534601637a9189354c92532c0ef273a89153092d.tar.gz |
more tests fixed
Diffstat (limited to 'tests')
-rw-r--r-- | tests/osproc/ta_in.nim | 4 | ||||
-rw-r--r-- | tests/stdlib/tmemlinesBuf.nim | 10 | ||||
-rw-r--r-- | tests/stdlib/tnativesockets.nim | 5 | ||||
-rw-r--r-- | tests/stdlib/tparsopt.nim | 8 |
4 files changed, 24 insertions, 3 deletions
diff --git a/tests/osproc/ta_in.nim b/tests/osproc/ta_in.nim index b46890f6e..fb294ec14 100644 --- a/tests/osproc/ta_in.nim +++ b/tests/osproc/ta_in.nim @@ -1,3 +1,7 @@ +discard """ +action: compile +""" + # This file is prefixed with an "a", because other tests # depend on it and it must be compiled first. import strutils diff --git a/tests/stdlib/tmemlinesBuf.nim b/tests/stdlib/tmemlinesBuf.nim index 9fa68cf02..aadca4c61 100644 --- a/tests/stdlib/tmemlinesBuf.nim +++ b/tests/stdlib/tmemlinesBuf.nim @@ -1,6 +1,14 @@ +discard """ +output: "14" +""" + import memfiles var inp = memfiles.open("tests/stdlib/tmemlinesBuf.nim") var buffer: TaintedString = "" +var lineCount = 0 for line in lines(inp, buffer): - echo("#" & line & "#") + lineCount += 1 + close(inp) + +echo lineCount diff --git a/tests/stdlib/tnativesockets.nim b/tests/stdlib/tnativesockets.nim index c683647bc..c2738b8a5 100644 --- a/tests/stdlib/tnativesockets.nim +++ b/tests/stdlib/tnativesockets.nim @@ -1,3 +1,7 @@ +discard """ +outputsub: "" +""" + import nativesockets, unittest suite "nativesockets": @@ -5,4 +9,3 @@ suite "nativesockets": let hostname = getHostname() check hostname.len > 0 check hostname.len < 64 - diff --git a/tests/stdlib/tparsopt.nim b/tests/stdlib/tparsopt.nim index 848fba2da..948bc8d5f 100644 --- a/tests/stdlib/tparsopt.nim +++ b/tests/stdlib/tparsopt.nim @@ -1,4 +1,10 @@ -# Test the new parseopt module +discard """ +disabled: true +""" + +# this file has a type in the name, and it does not really test +# parseopt module, because tester has no support to set arguments. Test the +# new parseopt module. Therefore it is disabled. import parseopt |