diff options
author | Ri Xu <xuri.me@gmail.com> | 2016-11-24 11:42:51 +0800 |
---|---|---|
committer | Ri Xu <xuri.me@gmail.com> | 2016-11-24 11:42:51 +0800 |
commit | 2a3620e750df7dc8c24791d51ca8e06c0f68799c (patch) | |
tree | 463b4ad036ec204cb320912b47215e10e9eced94 /excelize_test.go | |
parent | 6adcb9d88fe93ce390a89eb83e78d42b94007a43 (diff) |
BugFix: `SetCellValue` function assertion logic will cause panic in some case.
Diffstat (limited to 'excelize_test.go')
-rw-r--r-- | excelize_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go index 887fea8..1f215df 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -40,6 +40,12 @@ func TestExcelize(t *testing.T) { f1.SetCellValue("Sheet2", "F1", "Hello") f1.SetCellValue("Sheet2", "G1", []byte("World")) f1.SetCellValue("Sheet2", "F2", 42) + f1.SetCellValue("Sheet2", "F2", int8(42)) + f1.SetCellValue("Sheet2", "F2", int16(42)) + f1.SetCellValue("Sheet2", "F2", int32(42)) + f1.SetCellValue("Sheet2", "F2", int64(42)) + f1.SetCellValue("Sheet2", "F2", float32(42)) + f1.SetCellValue("Sheet2", "F2", float64(42)) f1.SetCellValue("Sheet2", "G2", nil) // Test completion column. f1.SetCellValue("Sheet2", "M2", nil) |