You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-15 22:50:24 +02:00
add ReadBase64
This commit is contained in:
13
jsoniter_base64_test.go
Normal file
13
jsoniter_base64_test.go
Normal file
@ -0,0 +1,13 @@
|
||||
package jsoniter
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"bytes"
|
||||
)
|
||||
|
||||
func Test_read_base64(t *testing.T) {
|
||||
iter := ParseString(`"YWJj"`)
|
||||
if !bytes.Equal(iter.ReadBase64(), []byte("abc")) {
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user