From 56aa6b82637b3210be470a8ebac1fdec2b2a6a30 Mon Sep 17 00:00:00 2001 From: xuri Date: Tue, 8 Mar 2022 00:03:02 +0800 Subject: ref #65, new formula functions and read boolean data type cell value support * added 3 new formula functions: BETAINV, BETA.INV, F.INV.RT --- excelize_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'excelize_test.go') diff --git a/excelize_test.go b/excelize_test.go index bafd446..7d38304 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -130,14 +130,17 @@ func TestOpenFile(t *testing.T) { // Test boolean write booltest := []struct { value bool + raw bool expected string }{ - {false, "0"}, - {true, "1"}, + {false, true, "0"}, + {true, true, "1"}, + {false, false, "FALSE"}, + {true, false, "TRUE"}, } for _, test := range booltest { assert.NoError(t, f.SetCellValue("Sheet2", "F16", test.value)) - val, err := f.GetCellValue("Sheet2", "F16") + val, err := f.GetCellValue("Sheet2", "F16", Options{RawCellValue: test.raw}) assert.NoError(t, err) assert.Equal(t, test.expected, val) } -- cgit v1.2.1