From 0f723d72a1cbaa668cb5f9029ca2abae7ebd8a4f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 3 Nov 2019 22:18:15 +0000 Subject: put back proper test for data pulled from spreadsheet --- reader/reader_test.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'reader') 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) { -- cgit v1.2.3