You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-18 22:57:33 +02:00
support null/true/false
This commit is contained in:
17
jsoniter_bool_test.go
Normal file
17
jsoniter_bool_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package jsoniter
|
||||
|
||||
import "testing"
|
||||
|
||||
func Test_true(t *testing.T) {
|
||||
iter := ParseString(`true`)
|
||||
if iter.ReadBool() != true {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
func Test_false(t *testing.T) {
|
||||
iter := ParseString(`false`)
|
||||
if iter.ReadBool() != false {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user