From 24988799639ac6f404b0eacde450b292219d1bc1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 12 Nov 2019 09:26:02 +0000 Subject: added another test --- reader/reader_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/reader/reader_test.go b/reader/reader_test.go index 232e67d..f3a384e 100644 --- a/reader/reader_test.go +++ b/reader/reader_test.go @@ -106,8 +106,12 @@ func TestReadXLSXToMap(t *testing.T) { if d["Summary"]["A2"].Value != "Date:" { t.Errorf("Expected A2 in Summary sheet to be 'Date:' - instead it is %s", d["Summary"]["A2"].Value) } - // TODO we actually want this to return an integer - do we? + // TODO we actually want this to return an float - do we? if d["Another Sheet"]["F5"].Value != "4.2" { t.Errorf("Expected F5 in Another Sheet sheet to be 4.2 - instead it is %s", d["Another Sheet"]["F5"].Value) } + // TODO we actually want this to return an integer - do we? + if d["Another Sheet"]["J22"].Value != "18" { + t.Errorf("Expected J22 in Another Sheet sheet to be 18 - instead it is %s", d["Another Sheet"]["J22"].Value) + } } -- cgit v1.2.3