diff options
Diffstat (limited to '')
-rw-r--r-- | reader/reader.go | 2 | ||||
-rw-r--r-- | reader/reader_test.go | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/reader/reader.go b/reader/reader.go index d8ab23c..b5d088b 100644 --- a/reader/reader.go +++ b/reader/reader.go @@ -84,6 +84,8 @@ func alphaSingle() []string { return letters } +var alphaStream = alphas(10) + //alphas generates the alpha column compont of Excel cell references //Combines n alphabets to do this. func alphas(n int) []string { diff --git a/reader/reader_test.go b/reader/reader_test.go index fe58445..109b605 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -42,6 +42,12 @@ func TestReadXLSX(t *testing.T) { _ = ReadXLSX("testdata/test_template.xlsx") // TODO: remove temp blank } +func TestAlphaStream(t *testing.T) { + if alphaStream[26] != "AA" { + t.Errorf("Expected AA, got %v", alphaStream[26]) + } +} + func TestAlphaSingle(t *testing.T) { as := alphaSingle() if as[0] != "A" { |