Skip to content

Commit 93b3839

Browse files
authored
More tests (#133)
1 parent defefca commit 93b3839

File tree

3 files changed

+706
-0
lines changed

3 files changed

+706
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tests/tests
77
tests/tests.js
88
tests/tests2
99
tests/tests2.js
10+
tests/tests_misc
11+
tests/tests_misc.js
1012
docs/ugh
1113
bin/*
1214
bench/bench

regex.nimble

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ task test2, "Test":
2020
exec "nim c -r -d:noRegexOpt tests/tests2.nim"
2121
when (NimMajor, NimMinor, NimPatch) >= (0, 20, 2):
2222
exec "nim c -d:runTestAtCT tests/tests2.nim"
23+
exec "nim c -r tests/tests_misc.nim"
24+
exec "nim c -r -d:forceRegexAtRuntime tests/tests_misc.nim"
25+
exec "nim c -r -d:forceRegexAtRuntime -d:noRegexOpt tests/tests_misc.nim"
26+
exec "nim c -r -d:noRegexOpt tests/tests_misc.nim"
2327
# js target should work in older versions, but
2428
# the docker image for CI has it since Nim 1.0.4,
2529
# so I'll only test it there
@@ -28,6 +32,8 @@ task test2, "Test":
2832
exec "nim js -r src/regex.nim"
2933
exec "nim js -r tests/tests2.nim"
3034
exec "nim js -r -d:forceRegexAtRuntime tests/tests2.nim"
35+
exec "nim js -r tests/tests_misc.nim"
36+
exec "nim js -r -d:forceRegexAtRuntime tests/tests_misc.nim"
3137
# test release/danger mode
3238
exec "nim c -r -d:release -o:bin/regex src/regex.nim"
3339
exec "nim c -r -d:danger -o:bin/regex src/regex.nim"

0 commit comments

Comments
 (0)