Merge pull request #170 from nsd20463/fix_map_type_unit_test

reduce the unit test map to 1 element so the encoding is consistent
This commit is contained in:
Vasily Romanov
2018-03-07 16:06:05 +03:00
committed by GitHub
+2 -3
View File
@@ -22,9 +22,8 @@ var customMapKeyTypeValue CustomMapKeyType
func init() {
customMapKeyTypeValue.Map = map[customKeyType]int{
customKeyType{0x01, 0x01}: 1,
customKeyType{0x02, 0x02}: 2,
customKeyType{0x01, 0x02}: 3,
}
}
var customMapKeyTypeValueString = `{"Map":{"0101":1,"0202":2}}`
var customMapKeyTypeValueString = `{"Map":{"0102":3}}`