You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-07-12 23:50:19 +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()
|
||
|
}
|
||
|
}
|