mirror of
https://github.com/json-iterator/go.git
synced 2024-11-27 08:30:57 +02:00
18 lines
258 B
Go
18 lines
258 B
Go
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()
|
|
}
|
|
}
|