[unittest] remove unnecessay export for testing (#20868)
This commit is contained in:
parent
a104aa4714
commit
8266750497
2 changed files with 1 additions and 2 deletions
|
|
@ -433,8 +433,6 @@ proc matchFilter(suiteName, testName, filter: string): bool =
|
||||||
return glob(suiteName, suiteAndTestFilters[0]) and
|
return glob(suiteName, suiteAndTestFilters[0]) and
|
||||||
glob(testName, suiteAndTestFilters[1])
|
glob(testName, suiteAndTestFilters[1])
|
||||||
|
|
||||||
when defined(testing): export matchFilter
|
|
||||||
|
|
||||||
proc shouldRun(currentSuiteName, testName: string): bool =
|
proc shouldRun(currentSuiteName, testName: string): bool =
|
||||||
## Check if a test should be run by matching suiteName and testName against
|
## Check if a test should be run by matching suiteName and testName against
|
||||||
## test filters.
|
## test filters.
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ targets: "c js"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import std/[unittest, sequtils, assertions]
|
import std/[unittest, sequtils, assertions]
|
||||||
|
from std/unittest {.all.} import matchFilter
|
||||||
|
|
||||||
proc doThings(spuds: var int): int =
|
proc doThings(spuds: var int): int =
|
||||||
spuds = 24
|
spuds = 24
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue