1
0
mirror of https://github.com/json-iterator/go.git synced 2025-02-01 19:14:29 +02:00
json-iterator/jsoniter_reflect_test.go

15 lines
179 B
Go
Raw Normal View History

2016-12-04 11:06:38 +08:00
package jsoniter
import (
"testing"
)
func Test_reflect_str(t *testing.T) {
iter := ParseString(`"hello"`)
str := ""
iter.Read(&str)
if str != "hello" {
t.FailNow()
}
}