21 lines
461 B
Go
21 lines
461 B
Go
package main
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func testRemakeGob(t *testing.T) {
|
|
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...)
|
|
}
|