more tests fixed
This commit is contained in:
parent
9c2365d5c2
commit
534601637a
6 changed files with 24 additions and 5 deletions
|
|
@ -33,4 +33,3 @@ when not defined(createNimRtl):
|
|||
import
|
||||
parseutils, strutils, parseopt, parsecfg, strtabs, unicode, pegs, ropes,
|
||||
os, osproc, times
|
||||
|
||||
|
|
|
|||
|
|
@ -531,7 +531,6 @@ proc processCategory(r: var TResults, cat: Category, options: string) =
|
|||
else:
|
||||
var testsRun = 0
|
||||
for name in os.walkFiles("tests" & DirSep &.? cat.string / "t*.nim"):
|
||||
echo name
|
||||
testSpec r, makeTest(name, options, cat)
|
||||
inc testsRun
|
||||
if testsRun == 0:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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