1
0
mirror of https://github.com/json-iterator/go.git synced 2025-03-11 14:09:42 +02:00
json-iterator/jsoniter_any_bool_test.go

13 lines
206 B
Go
Raw Normal View History

2017-06-17 21:32:48 +08:00
package jsoniter
import (
"testing"
"github.com/json-iterator/go/require"
)
func Test_read_bool_as_any(t *testing.T) {
should := require.New(t)
any := Get([]byte("true"))
2017-06-17 21:32:48 +08:00
should.True(any.ToBool())
}