aboutsummaryrefslogtreecommitdiffstats
path: root/skate/zippy_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/zippy_test.go')
-rw-r--r--skate/zippy_test.go17
1 files changed, 15 insertions, 2 deletions
diff --git a/skate/zippy_test.go b/skate/zippy_test.go
index 16aa74d..817626b 100644
--- a/skate/zippy_test.go
+++ b/skate/zippy_test.go
@@ -193,6 +193,18 @@ func TestMatchedRefsExtend(t *testing.T) {
MatchStatus: StatusUnmatched.Short(),
MatchReason: ReasonUnknown.Short(),
SourceYear: "0",
+ Extra: struct {
+ Ref Ref `json:"ref"`
+ }{
+ Ref: Ref{
+ ReleaseIdent: "0000",
+ Biblio: Biblio{
+ Title: "Title",
+ },
+ Index: 3,
+ Key: "K3",
+ },
+ },
},
},
},
@@ -223,10 +235,11 @@ func TestMatchedRefsExtend(t *testing.T) {
},
},
}
- for _, c := range cases {
+ for i, c := range cases {
result := matchedRefsExtend(c.matched, c.refs, &statsAugment{})
if !reflect.DeepEqual(result, c.result) {
- t.Fatalf("got %v, want %v (%v)", result, c.result, pretty.Diff(result, c.result))
+ t.Fatalf("[%d]: got %v, want %v (%v)",
+ i+1, result, c.result, pretty.Diff(result, c.result))
}
}
}