@@ -67,16 +67,21 @@ func TestOpenFile(t *testing.T) {
67
67
xlsx .SetCellValue ("Sheet2" , "F1" , " Hello" )
68
68
xlsx .SetCellValue ("Sheet2" , "G1" , []byte ("World" ))
69
69
xlsx .SetCellValue ("Sheet2" , "F2" , 42 )
70
- xlsx .SetCellValue ("Sheet2" , "F2" , int8 (42 ))
71
- xlsx .SetCellValue ("Sheet2" , "F2" , int16 (42 ))
72
- xlsx .SetCellValue ("Sheet2" , "F2" , int32 (42 ))
73
- xlsx .SetCellValue ("Sheet2" , "F2" , int64 (42 ))
74
- xlsx .SetCellValue ("Sheet2" , "F2" , float32 (42.65418 ))
75
- xlsx .SetCellValue ("Sheet2" , "F2" , float64 (- 42.65418 ))
76
- xlsx .SetCellValue ("Sheet2" , "F2" , float32 (42 ))
77
- xlsx .SetCellValue ("Sheet2" , "F2" , float64 (42 ))
70
+ xlsx .SetCellValue ("Sheet2" , "F3" , int8 (1 << 8 / 2 - 1 ))
71
+ xlsx .SetCellValue ("Sheet2" , "F4" , int16 (1 << 16 / 2 - 1 ))
72
+ xlsx .SetCellValue ("Sheet2" , "F5" , int32 (1 << 32 / 2 - 1 ))
73
+ xlsx .SetCellValue ("Sheet2" , "F6" , int64 (1 << 32 / 2 - 1 ))
74
+ xlsx .SetCellValue ("Sheet2" , "F7" , float32 (42.65418 ))
75
+ xlsx .SetCellValue ("Sheet2" , "F8" , float64 (- 42.65418 ))
76
+ xlsx .SetCellValue ("Sheet2" , "F9" , float32 (42 ))
77
+ xlsx .SetCellValue ("Sheet2" , "F10" , float64 (42 ))
78
+ xlsx .SetCellValue ("Sheet2" , "F11" , uint (1 << 32 - 1 ))
79
+ xlsx .SetCellValue ("Sheet2" , "F12" , uint8 (1 << 8 - 1 ))
80
+ xlsx .SetCellValue ("Sheet2" , "F13" , uint16 (1 << 16 - 1 ))
81
+ xlsx .SetCellValue ("Sheet2" , "F14" , uint32 (1 << 32 - 1 ))
82
+ xlsx .SetCellValue ("Sheet2" , "F15" , uint64 (1 << 32 - 1 ))
83
+ xlsx .SetCellValue ("Sheet2" , "F16" , true )
78
84
xlsx .SetCellValue ("Sheet2" , "G2" , nil )
79
- xlsx .SetCellValue ("Sheet2" , "G3" , uint8 (8 ))
80
85
xlsx .SetCellValue ("Sheet2" , "G4" , time .Now ())
81
86
// Test completion column.
82
87
xlsx .SetCellValue ("Sheet2" , "M2" , nil )
0 commit comments