From 79311f9f3d806b57168b7aba65235f2470555567 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 28 Jul 2020 07:29:08 +0100 Subject: working on failing test where dm not work when sheets not sequential - added Makefile --- pkg/datamaps/reader_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/datamaps/reader_test.go') diff --git a/pkg/datamaps/reader_test.go b/pkg/datamaps/reader_test.go index 32e7f67..f784834 100644 --- a/pkg/datamaps/reader_test.go +++ b/pkg/datamaps/reader_test.go @@ -162,7 +162,7 @@ func TestExtractUsingDBDM(t *testing.T) { opts := Options{ DBPath: "./testdata/test.db", DMName: "First Datamap", - DMPath: "./testdata/datamap.csv", + DMPath: "./testdata/short/datamap_matches_test_template.csv", } if err := DatamapToDB(&opts); err != nil { @@ -182,7 +182,7 @@ func TestExtractUsingDBDM(t *testing.T) { for _, c := range cases { got := d[c.sheet][c.cellref].Value if got != c.val { - t.Errorf("The test expected %s in %s sheet to be %s "+ + t.Errorf("test_template.xlsx: The test expected %s in %s sheet to be %s "+ "- instead it is %s.", c.sheet, c.cellref, c.val, d[c.sheet][c.cellref].Value) } -- cgit v1.2.3