Skip to content

Commit eddd8be

Browse files
authored
add TestFromJSON (#14)
1 parent 2d73a22 commit eddd8be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

utils/json_test.go

+7
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,10 @@ func TestToJSON(t *testing.T) {
1111

1212
fmt.Println(res)
1313
}
14+
15+
func TestFromJSON(t *testing.T) {
16+
t.Parallel()
17+
res := FromJSON([]byte(`"MY/NAME/IS/:PARAM/*"`), "")
18+
19+
fmt.Println(res)
20+
}

0 commit comments

Comments
 (0)