more tests fixed

This commit is contained in:
Arne Döring 2018-11-16 12:43:05 +01:00 • committed by Araq
commit 534601637a
6 changed files with 24 additions and 5 deletions

View file

@ -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

View file

@ -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

View file

@ -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