diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-04 21:18:41 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-08-04 21:18:41 +0100 |
commit | 6873689e6bba424e57f86ecf09f7ab073893100f (patch) | |
tree | 0bebba0c1fb799873ac6068930d70f6b183bc17f | |
parent | 87ed8707ba13fa1d52f7bcd06b3c1a5f989be2cf (diff) |
fuller test error message
-rw-r--r-- | pkg/datamaps/writer_test.go | 3 |
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) } } |