From 2a3620e750df7dc8c24791d51ca8e06c0f68799c Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Thu, 24 Nov 2016 11:42:51 +0800 Subject: BugFix: `SetCellValue` function assertion logic will cause panic in some case. --- excelize_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'excelize_test.go') 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) -- cgit v1.2.1