mirror of
https://github.com/json-iterator/go.git
synced 2025-02-01 19:14:29 +02:00
15 lines
179 B
Go
15 lines
179 B
Go
|
package jsoniter
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_reflect_str(t *testing.T) {
|
||
|
iter := ParseString(`"hello"`)
|
||
|
str := ""
|
||
|
iter.Read(&str)
|
||
|
if str != "hello" {
|
||
|
t.FailNow()
|
||
|
}
|
||
|
}
|