diff options
author | Florent <florent@napalu.ch> | 2017-03-04 11:13:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-03-04 11:13:08 +0100 |
commit | 93305443aa0efc94906f4977f5eb68748addd426 (patch) | |
tree | 8e9c55af88c7f8e28abc35a6d490efbe224f5c38 /tests/stdlib | |
parent | 52462f031e6f8605fc3155879c216e25427ca7df (diff) | |
download | Nim-93305443aa0efc94906f4977f5eb68748addd426.tar.gz |
close #5472 nre tests should be run (#5474)
nre tests were just being compiled - changed so that a failure causes exit code to defer causing `tester` to report it as a failure
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tnre.nim | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/stdlib/tnre.nim b/tests/stdlib/tnre.nim index 85792b81e..030319ebf 100644 --- a/tests/stdlib/tnre.nim +++ b/tests/stdlib/tnre.nim @@ -1,3 +1,25 @@ +discard """ +# Since the tests for nre are all bundled together we treat failure in one test as an nre failure +# When running 'tests/testament/tester' a failed check() in the test suite will cause the exit +# codes to differ and be reported as a failure + + output: + '''[Suite] Test NRE initialization + +[Suite] captures + +[Suite] find + +[Suite] string splitting + +[Suite] match + +[Suite] replace + +[Suite] escape strings + +[Suite] Misc tests''' +""" import nre import nre.init import nre.captures |