Skip to content

Commit 4ec1371

Browse files
committed
Add initial test suites for uri format
1 parent 1914ad8 commit 4ec1371

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package io.github.optimumcode.json.schema.assertions.general.format
2+
3+
import io.kotest.core.spec.style.FunSpec
4+
5+
class JsonSchemaUriFormatValidationTest : FunSpec() {
6+
init {
7+
formatValidationTestSuite(
8+
format = "uri",
9+
validTestCases =
10+
listOf(
11+
"https://example.com:443/",
12+
"https://[v6.fe80::a_(en1)]",
13+
),
14+
invalidTestCases =
15+
listOf(
16+
TestCase("", "empty"),
17+
TestCase("https://example.com:44a/", "invalid port"),
18+
),
19+
)
20+
}
21+
}

0 commit comments

Comments
 (0)