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)
|
2017-06-18 22:21:54 +08:00
|
|
|
any := Get([]byte("true"))
|
2017-06-17 21:32:48 +08:00
|
|
|
should.True(any.ToBool())
|
|
|
|
}
|