1
0
mirror of https://github.com/json-iterator/go.git synced 2025-01-29 19:14:05 +02:00
json-iterator/jsoniter_any_bool_test.go
2017-06-19 23:43:53 +08:00

13 lines
206 B
Go

package jsoniter
import (
"github.com/json-iterator/go/require"
"testing"
)
func Test_read_bool_as_any(t *testing.T) {
should := require.New(t)
any := Get([]byte("true"))
should.True(any.ToBool())
}