diff options
author | Araq <rumpf_a@web.de> | 2014-08-29 00:57:21 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-08-29 00:57:21 +0200 |
commit | 16b15f360a72706c993fa6886a2baa0e28ef661c (patch) | |
tree | ed9edb7f6868ddec3ea8724240bcd080f7841ffc /tests/testament | |
parent | 051b9ca0cee4ea5ebee78f6fe3c3aa0ff1528ad8 (diff) | |
download | Nim-16b15f360a72706c993fa6886a2baa0e28ef661c.tar.gz |
updated the tester
Diffstat (limited to 'tests/testament')
-rw-r--r-- | tests/testament/specs.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testament/specs.nim b/tests/testament/specs.nim index 184f07c51..f02b26f5b 100644 --- a/tests/testament/specs.nim +++ b/tests/testament/specs.nim @@ -59,7 +59,7 @@ when not declared(parseCfgBool): case normalize(s) of "y", "yes", "true", "1", "on": result = true of "n", "no", "false", "0", "off": result = false - else: raise newException(EInvalidValue, "cannot interpret as a bool: " & s) + else: raise newException(ValueError, "cannot interpret as a bool: " & s) proc extractSpec(filename: string): string = const tripleQuote = "\"\"\"" @@ -78,7 +78,7 @@ when not defined(nimhygiene): template parseSpecAux(fillResult: stmt) {.immediate.} = var ss = newStringStream(extractSpec(filename)) - var p {.inject.}: TCfgParser + var p {.inject.}: CfgParser open(p, ss, filename, 1) while true: var e {.inject.} = next(p) |