diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-03 22:18:15 +0000 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2019-11-03 22:18:15 +0000 |
commit | 0f723d72a1cbaa668cb5f9029ca2abae7ebd8a4f (patch) | |
tree | a70f7318c678084f2d208bfdedd1d74a5a195d4c | |
parent | 4617ab0e8213c4a347f65b39f01ce552b0445e3d (diff) |
put back proper test for data pulled from spreadsheet
-rw-r--r-- | reader/reader_test.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go index ff9a55c..5f2b5f5 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -40,7 +40,16 @@ func TestBadDMLLine(t *testing.T) { } func TestReadXLSX(t *testing.T) { - _ = ReadXLSX("testdata/test_template.xlsx") // TODO: remove temp blank + data := ReadXLSX("testdata/test_template.xlsx") + if data[0].colL != "A" { + t.Errorf("Expected data[0].colL to be A, got %v", data[0].colL) + } + if data[0].value != "Date:" { + t.Errorf("Expected data[0].value to be Date:, got %v", data[0].value) + } + if data[0].rowLidx != 2 { + t.Errorf("Expected data[0].rowLidx to be 2, got %v", data[0].rowLidx) + } } func TestAlphaStream(t *testing.T) { |