aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-08-04 21:18:41 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-08-04 21:18:41 +0100
commit6873689e6bba424e57f86ecf09f7ab073893100f (patch)
tree0bebba0c1fb799873ac6068930d70f6b183bc17f
parent87ed8707ba13fa1d52f7bcd06b3c1a5f989be2cf (diff)
fuller test error message
-rw-r--r--pkg/datamaps/writer_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/datamaps/writer_test.go b/pkg/datamaps/writer_test.go
index 7a689b5..3124455 100644
--- a/pkg/datamaps/writer_test.go
+++ b/pkg/datamaps/writer_test.go
@@ -97,7 +97,8 @@ func TestWriteMaster(t *testing.T) {
}
got_s := strings.TrimSuffix(string(got), "\n")
if strings.Compare(got_s, test.value) != 0 {
- t.Errorf("when testing the database, we expected %s but got %s", test.value, got_s)
+ t.Errorf("when testing the database, for key %s in file %s we expected %s but got %s", test.key,
+ test.filename, test.value, got_s)
}
}