more tests fixed
This commit is contained in:
parent
9c2365d5c2
commit
534601637a
6 changed files with 24 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue