mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
nre tests were just being compiled - changed so that a failure causes exit code to defer causing `tester` to report it as a failure
32 lines
593 B
Nim
32 lines
593 B
Nim
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
|
|
import nre.find
|
|
import nre.split
|
|
import nre.match
|
|
import nre.replace
|
|
import nre.escape
|
|
import nre.misc
|