func TestProcessFmt134(t *testing.T) { b := New() config.SetDistance(1000) config.SetRange(500) config.SetChoices(3) b.addSignature(tests.TestFmts[134]) saver := persist.NewLoadSaver(nil) b.Save(saver) loader := persist.NewLoadSaver(saver.Bytes()) b = Load(loader) if len(b.keyFrames[0]) != 8 { for _, v := range b.keyFrames[0] { t.Errorf("%s\n", v) } } for _, t := range b.tests { t.maxLeftDistance = maxLength(t.left) t.maxRightDistance = maxLength(t.right) } if len(b.tests) != 8 { for _, v := range b.tests { t.Error(v.maxRightDistance) t.Error(v.right) } } }