Skip to content

Commit 3a5752c

Browse files
committed
Add additional test for regex format
1 parent 3c81f73 commit 3a5752c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package io.github.optimumcode.json.schema.assertions.general.format
2+
3+
import io.kotest.core.spec.style.FunSpec
4+
5+
class JsonSchemaRegexFormatValidationTest : FunSpec() {
6+
init {
7+
formatValidationTestSuite(
8+
format = "regex",
9+
validTestCases =
10+
listOf(
11+
"",
12+
"(?=test\\s)",
13+
),
14+
invalidTestCases =
15+
listOf(
16+
TestCase("(test", "missing brackets"),
17+
),
18+
)
19+
}
20+
}

0 commit comments

Comments
 (0)