1
0
mirror of https://github.com/json-iterator/go.git synced 2025-12-20 23:30:38 +02:00

remove any

This commit is contained in:
Tao Wen
2017-01-22 19:36:19 +08:00
parent 9c2b1d24b3
commit 9df37bbd68
7 changed files with 1 additions and 703 deletions

View File

@@ -1,8 +1,6 @@
package jsoniter
import (
"fmt"
"reflect"
"testing"
"github.com/json-iterator/go/require"
)
@@ -26,16 +24,6 @@ func Test_read_map_of_interface(t *testing.T) {
should.Equal(map[string]interface{}{"hello": "world"}, iter.Read())
}
func Test_read_map_of_any(t *testing.T) {
iter := ParseString(`{"hello": "world"}`)
m := map[string]Any{"1": *MakeAny("2")}
iter.ReadVal(&m)
if !reflect.DeepEqual(map[string]Any{"1": *MakeAny("2"), "hello": *MakeAny("world")}, m) {
fmt.Println(iter.Error)
t.Fatal(m)
}
}
func Test_write_val_map(t *testing.T) {
should := require.New(t)
val := map[string]string{"1": "2"}