aboutsummaryrefslogtreecommitdiffstats
path: root/reader/reader_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-11-12 15:24:33 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-11-12 15:24:33 +0000
commitf2fe102b3674d43144ec47e4df7246daef4626df (patch)
treebf16c95ecec6328b7ee3a458a13d4dba297f7118 /reader/reader_test.go
parent4eb808382d1d8c53f5d0bffc18b16bf911fe96d2 (diff)
pretty much can filter by datamap by needs more tests
Diffstat (limited to 'reader/reader_test.go')
-rw-r--r--reader/reader_test.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go
index 36dd8f1..3096c1b 100644
--- a/reader/reader_test.go
+++ b/reader/reader_test.go
@@ -98,3 +98,10 @@ func TestReadXLSX(t *testing.T) {
t.Errorf("Expected J22 in Another Sheet sheet to be 18 - instead it is %s", d["Another Sheet"]["J22"].Value)
}
}
+
+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)
+ }
+}