carlos / platform Public

Clone
git clone https://amadan.net/carlos/platform

Plain git — no account needed to clone.

Download

Download this file

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