diff options
author | Araq <rumpf_a@web.de> | 2012-11-20 21:28:55 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-20 21:28:55 +0100 |
commit | c4b7a3e545d2fce998a91bc2e2f525a9e1984f5c (patch) | |
tree | 10316d5e6bc8a0eedc2b30b591e6ff713c77387c /tests/tester.nim | |
parent | 3d408420889097a87919fc2f8e9e5de837a35506 (diff) | |
download | Nim-c4b7a3e545d2fce998a91bc2e2f525a9e1984f5c.tar.gz |
docs should build under doc2; unittests of times.nim compile under 32bit; small bugfix for the tester
Diffstat (limited to 'tests/tester.nim')
-rwxr-xr-x | tests/tester.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tester.nim b/tests/tester.nim index 259330805..8156dab7f 100755 --- a/tests/tester.nim +++ b/tests/tester.nim @@ -56,7 +56,8 @@ proc extractSpec(filename: string): string = var x = readFile(filename).string var a = x.find(tripleQuote) var b = x.find(tripleQuote, a+3) - if a >= 0 and b > a: + # look for """ only in the first section + if a >= 0 and b > a and a < 40: result = x.substr(a+3, b-1).replace("'''", tripleQuote) else: #echo "warning: file does not contain spec: " & filename |