aboutsummaryrefslogtreecommitdiffstats
path: root/reader/reader_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-03 17:17:10 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-03 17:17:10 +0000
commit8ac4a42c58f6dfb65ddfaef38d137ab1b2280e41 (patch)
tree40893511af035d3fd5b1b6d6507d49ae8b9ef077 /reader/reader_test.go
parent182e71afccb8ef649e9738aa8034c9c2cdfcfd7a (diff)
removed all coords code
Diffstat (limited to '')
-rw-r--r--reader/reader_test.go48
1 files changed, 0 insertions, 48 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go
index 4be02df..d6d29fb 100644
--- a/reader/reader_test.go
+++ b/reader/reader_test.go
@@ -38,54 +38,6 @@ func TestBadDMLLine(t *testing.T) {
}
}
-func TestAlphaStream(t *testing.T) {
- if colstream[26] != "AA" {
- t.Errorf("The test expected AA, got %v.", colstream[26])
- }
- if len(colstream) > maxCols {
- t.Errorf(`Number of columns in alphastream exceeds Excel maximum.
- alphastream contains %d, maxCols is %d`, len(colstream), maxCols)
- }
-}
-
-func TestAlphaSingle(t *testing.T) {
- ab := alphabet()
- if ab[0] != "A" {
- t.Errorf("The test expected A, got %v.", ab[0])
- }
- if ab[1] != "B" {
- t.Errorf("The test expected B, got %v.", ab[1])
- }
- if ab[25] != "Z" {
- t.Errorf("The test expected Z, got %v.", ab[25])
- }
-}
-
-func TestAlphas(t *testing.T) {
- a := 2 // two alphabets long
- ecs := cols(a)
- cases := []struct {
- col int
- val string
- }{
- {0, "A"},
- {25, "Z"},
- {26, "AA"},
- {52, "BA"},
- }
- for _, c := range cases {
- // we're making sure we can pass that index
- r := 26 * a
- if c.col > r {
- t.Fatalf("Cannot use %d as index to array of %d", c.col, r)
- }
- if got := ecs[c.col]; got != c.val {
- t.Errorf("The test expected ecs[%d] to be %s - got %s.",
- c.col, c.val, ecs[c.col])
- }
- }
-}
-
func TestGetSheetsFromDM(t *testing.T) {
slice, _ := ReadDML("testdata/datamap.csv")
sheetNames := getSheetNames(slice)