package main import "testing" func TestPlan9Fix1MigrationAllowsLegacyNonObjectsMentioningSequence(t *testing.T) { for _, body := range []string{`"record_seq"`, `["record_seq"]`, `{"note":"record_seq",broken`, `not json record_seq`} { if err := migrationRecordBytes("apps/bab/blog/instances/host.json", []byte(body)); err != nil { t.Errorf("legacy non-object %q refused: %v", body, err) } } }