jsoniter_any_bool_test.go 206 B

123456789101112
  1. package jsoniter
  2. import (
  3. "github.com/json-iterator/go/require"
  4. "testing"
  5. )
  6. func Test_read_bool_as_any(t *testing.T) {
  7. should := require.New(t)
  8. any := Get([]byte("true"))
  9. should.True(any.ToBool())
  10. }