diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-15 14:32:11 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-15 14:32:11 +0000 |
commit | 3cf5ecab1c0f1d3b35841bd41ac2a838ecaab6be (patch) | |
tree | 3403348ece0723befcda9c752a7c701b85c82f21 /reader/reader_test.go | |
parent | 9835833c0d1fc3c59c0619cc4cda5359ddba3a4c (diff) |
removed dependency on datamap file
Diffstat (limited to 'reader/reader_test.go')
-rw-r--r-- | reader/reader_test.go | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go index eab6848..d39f6df 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -87,7 +87,7 @@ func TestGetSheetsFromDM(t *testing.T) { } func TestReadXLSX(t *testing.T) { - d := ReadXLSX("testdata/datamap.csv", "testdata/test_template.xlsx") + d := ReadXLSX("testdata/test_template.xlsx") if d["Summary"]["A2"].Value != "Date:" { t.Errorf("Expected A2 in Summary sheet to be 'Date:' - instead it is %s", d["Summary"]["A2"].Value) } @@ -102,12 +102,15 @@ func TestReadXLSX(t *testing.T) { func TestExtract(t *testing.T) { d := Extract("testdata/datamap.csv", "testdata/test_template.xlsx") if d["Introduction"]["C9"].Value != "Test Department" { - t.Errorf("Expected C9 in Introduction sheet to be Test Department - instead it is %s", d["Introduction"]["C9"].Value) + t.Errorf("Expected C9 in Introduction sheet to be Test Department "+ + "- instead it is %s", d["Introduction"]["C9"].Value) } if d["Introduction"]["J9"].Value != "Greedy Parrots" { - t.Errorf("Expected J9 in Introduction sheet to be Greedy Parrots - instead it is %s", d["Introduction"]["J9"].Value) + t.Errorf("Expected J9 in Introduction sheet to be Greedy Parrots "+ + "- instead it is %s", d["Introduction"]["J9"].Value) } if d["Introduction"]["A1"].Value != "10" { - t.Errorf("Expected A1 in Introduction sheet to be 10 - instead it is %s", d["Introduction"]["A1"].Value) + t.Errorf("Expected A1 in Introduction sheet to be 10 - instead "+ + "it is %s", d["Introduction"]["A1"].Value) } } |