1
0
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:
Tao Wen
2016-12-02 11:22:20 +08:00
parent 05a9df4749
commit ce5b193569
6 changed files with 358 additions and 31 deletions

17
jsoniter_bool_test.go Normal file
View 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()
}
}