diff options
author | Araq <rumpf_a@web.de> | 2014-04-21 00:07:31 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-04-21 00:07:31 +0200 |
commit | e3fab47508138687cdc85553440c8313606395c3 (patch) | |
tree | b68a5f1e43167cae54485c818891626e9505526a /tests/manyloc | |
parent | 472190bedc96dfa33b5979746f815feaa1555ac8 (diff) | |
download | Nim-e3fab47508138687cdc85553440c8313606395c3.tar.gz |
attempt to make some tests green
Diffstat (limited to 'tests/manyloc')
-rw-r--r-- | tests/manyloc/argument_parser/argument_parser.nim | 4 | ||||
-rw-r--r-- | tests/manyloc/keineschweine/lib/estreams.nim | 4 | ||||
-rw-r--r-- | tests/manyloc/nake/nake.nim | 2 |
3 files changed, 3 insertions, 7 deletions
diff --git a/tests/manyloc/argument_parser/argument_parser.nim b/tests/manyloc/argument_parser/argument_parser.nim index 1edda4aa0..6f4fb650e 100644 --- a/tests/manyloc/argument_parser/argument_parser.nim +++ b/tests/manyloc/argument_parser/argument_parser.nim @@ -292,9 +292,9 @@ proc parse_parameter(quit_on_failure: bool, param, value: string, raise_or_quit(EInvalidValue, ("parameter $1 requires a " & "float, but $2 can't be parsed into one") % [param, escape(value)]) of PK_EMPTY: - nil + discard of PK_HELP: - nil + discard template build_specification_lookup(): diff --git a/tests/manyloc/keineschweine/lib/estreams.nim b/tests/manyloc/keineschweine/lib/estreams.nim index bd0a2c31a..ecafaed89 100644 --- a/tests/manyloc/keineschweine/lib/estreams.nim +++ b/tests/manyloc/keineschweine/lib/estreams.nim @@ -7,10 +7,6 @@ proc swapEndian16*(outp, inp: pointer) = var o = cast[cstring](outp) o[0] = i[1] o[1] = i[0] -when cpuEndian == bigEndian: - proc bigEndian16(outp, inp: pointer) {.inline.} = copyMem(outp, inp, 2) -else: - proc bigEndian16*(outp, inp: pointer) {.inline.} = swapEndian16(outp, inp) import enet diff --git a/tests/manyloc/nake/nake.nim b/tests/manyloc/nake/nake.nim index eade28c70..4b1b35662 100644 --- a/tests/manyloc/nake/nake.nim +++ b/tests/manyloc/nake/nake.nim @@ -74,7 +74,7 @@ else: echo "Unknown option: ", key, ": ", val of cmdArgument: task = key - else: nil + else: discard if printTaskList or task.isNil or not(tasks.hasKey(task)): echo "Available tasks:" for name, task in pairs(tasks): |