From cf96e06b1f5e9d0037874f49c99e6f2b38369f5b Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 3 Nov 2019 22:02:43 +0000 Subject: alphastream variable now fits Excel max cols --- reader/reader_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'reader/reader_test.go') diff --git a/reader/reader_test.go b/reader/reader_test.go index 109b605..ff9a55c 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -1,6 +1,7 @@ package reader import ( + "log" "testing" ) @@ -46,6 +47,11 @@ func TestAlphaStream(t *testing.T) { if alphaStream[26] != "AA" { t.Errorf("Expected AA, got %v", alphaStream[26]) } + if len(alphaStream) > maxCols { + t.Errorf(`Number of columns in alphastream exceeds Excel maximum. + alphastream contains %d, maxCols is %d`, len(alphaStream), maxCols) + } + log.Printf("Length of alphastream: %d", len(alphaStream)) } func TestAlphaSingle(t *testing.T) { -- cgit v1.2.3