mirror of
https://github.com/json-iterator/go.git
synced 2025-02-01 19:14:29 +02:00
14 lines
191 B
Go
14 lines
191 B
Go
package jsoniter
|
|
|
|
import (
|
|
"testing"
|
|
"bytes"
|
|
)
|
|
|
|
func Test_read_base64(t *testing.T) {
|
|
iter := ParseString(`"YWJj"`)
|
|
if !bytes.Equal(iter.ReadBase64(), []byte("abc")) {
|
|
t.FailNow()
|
|
}
|
|
}
|