-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstring_test.go
27 lines (21 loc) · 1016 Bytes
/
string_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package chaff_test
import (
"testing"
test "github.com/ryanolee/go-chaff/internal/test_utils"
)
func TestFormat(t *testing.T){
t.Parallel()
test.TestJsonSchema(t, "test_data/string/format_date_time.json", 100)
test.TestJsonSchema(t, "test_data/string/format_time.json", 100)
test.TestJsonSchema(t, "test_data/string/format_date.json", 100)
test.TestJsonSchema(t, "test_data/string/format_email.json", 100)
test.TestJsonSchema(t, "test_data/string/format_hostname.json", 100)
test.TestJsonSchema(t, "test_data/string/format_ipv4.json", 100)
test.TestJsonSchema(t, "test_data/string/format_ipv6.json", 100)
test.TestJsonSchema(t, "test_data/string/format_uri.json", 100)
// @todo validate beyond draft 7
// test.TestJsonSchema(t, "test_data/string/format_duration.json", 100)
// test.TestJsonSchema(t, "test_data/string/format_idn_email.json", 100)
// test.TestJsonSchema(t, "test_data/string/format_uuid.json", 100)
// test.TestJsonSchema(t, "test_data/string/format_idn_hostname.json", 100)
}