summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-03-08 00:03:02 +0800
committerxuri <xuri.me@gmail.com>2022-03-08 00:03:02 +0800
commit56aa6b82637b3210be470a8ebac1fdec2b2a6a30 (patch)
tree419760c01fe4dbc4bca48a378461702e37d82d87 /excelize_test.go
parent61eb265c29685957bcf16b25dba3d389c548dfee (diff)
ref #65, new formula functions and read boolean data type cell value support
* added 3 new formula functions: BETAINV, BETA.INV, F.INV.RT
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go9
1 files changed, 6 insertions, 3 deletions
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)
}