mirror of
https://github.com/PerpetualSoftware/pad.git
synced 2026-11-25 17:38:32 +00:00
test(server): the interchange round trip asserts version 1 in, version 2 out (TASK-4350)
The golden archive is a version 1 bundle and every export is version 2. The comparator states that move explicitly and still compares every other path. Claude-Session: https://claude.ai/code/session_0191CBGVgVhPgYCGYJuFX9t9
This commit is contained in:
@@ -77,6 +77,14 @@ func TestInterchangeGolden_RoundTrip(t *testing.T) {
|
||||
want := flattenInterchange(t, "golden", golden)
|
||||
got := flattenInterchange(t, "re-export", again)
|
||||
|
||||
// The golden archive is a version 1 bundle; every export is version 2.
|
||||
// State that move on its own and compare everything else unchanged.
|
||||
if want["version"] != "1" || got["version"] != "2" {
|
||||
t.Fatalf("bundle version: golden %q, re-export %q, want 1 and 2", want["version"], got["version"])
|
||||
}
|
||||
delete(want, "version")
|
||||
delete(got, "version")
|
||||
|
||||
var diffs []string
|
||||
for p, w := range want {
|
||||
if g, ok := got[p]; !ok {
|
||||
|
||||
Reference in New Issue
Block a user