2020-05-20 08:05:33 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
2020-06-02 07:26:53 +00:00
|
|
|
func estRemakeGob(t *testing.T) {
|
2020-05-22 07:39:43 +00:00
|
|
|
country := &KeyList{}
|
|
|
|
LoadGob("./data/country-fix.gob", country)
|
|
|
|
// for i, ikey := range country.Keys {
|
|
|
|
// c := ikey.(Country)
|
|
|
|
// name := []rune(string(c.Name))
|
|
|
|
// iname := name[0 : len(name)-2]
|
|
|
|
// t.Error(string(name), string(iname))
|
|
|
|
// c.Name = []byte(string(iname))
|
|
|
|
// country.Keys[i] = c
|
|
|
|
// }
|
|
|
|
// SaveData("./data/country-fix.gob", country)
|
|
|
|
t.Error(country.Keys...)
|
2020-05-20 08:05:33 +00:00
|
|
|
}
|