mirror of
https://github.com/json-iterator/go.git
synced 2025-03-26 21:12:40 +02:00
14 lines
239 B
Go
14 lines
239 B
Go
|
package jsoniter
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"github.com/json-iterator/go/require"
|
||
|
)
|
||
|
|
||
|
func Test_read_bool_as_any(t *testing.T) {
|
||
|
should := require.New(t)
|
||
|
any, err := UnmarshalAnyFromString("true")
|
||
|
should.Nil(err)
|
||
|
should.True(any.ToBool())
|
||
|
}
|