From 93305443aa0efc94906f4977f5eb68748addd426 Mon Sep 17 00:00:00 2001 From: Florent Date: Sat, 4 Mar 2017 11:13:08 +0100 Subject: [PATCH] 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 --- tests/stdlib/tnre.nim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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