aboutsummaryrefslogtreecommitdiffstats
path: root/reader/reader_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-11-11 14:09:04 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-11-11 14:09:04 +0000
commit5a9b2ea3b312134dd7f8435d98b2f85341ba121e (patch)
tree64ac02796d72aacc92a70c4bb067e6b0a2cb1996 /reader/reader_test.go
parent0872d19721c078a5dfac4e6af1e431b8ffe6c9c9 (diff)
func makes more sense now
Diffstat (limited to 'reader/reader_test.go')
-rw-r--r--reader/reader_test.go15
1 files changed, 12 insertions, 3 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go
index b0b5f1b..b3d40c1 100644
--- a/reader/reader_test.go
+++ b/reader/reader_test.go
@@ -94,9 +94,18 @@ func TestAlphas(t *testing.T) {
func TestGetSheetsFromDM(t *testing.T) {
slice, _ := ReadDML("testdata/datamap.csv")
- sheetNo := getSheets(slice)
- if sheetNo != 14 {
+ sheetNames := getSheetNames(slice)
+ if len(sheetNames) != 14 {
t.Errorf("Expected 14 sheets in slice, got %d",
- sheetNo)
+ len(sheetNames))
}
}
+
+func TestSheetDataInMap(t *testing.T) {
+ // want to see data from a file in this form:
+ // Struct:
+ // filename: test_template.xlsx
+ // data: map[sheetName]sheetData
+ // we want to test ^^^^^^^^^^^^^
+
+}