summaryrefslogtreecommitdiff
path: root/excelize_test.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2016-09-09 19:39:41 +0800
committerRi Xu <xuri.me@gmail.com>2016-09-09 19:39:41 +0800
commitcbfd6577536304f9b0b93edb7748475d8266fe19 (patch)
tree6cc38b2f18b9510553915a139aebd93c8e05602d /excelize_test.go
parent9c14741a6beaab9048d107f2ac47d79416d51c62 (diff)
New function SetCellValue added and update godoc example.
Diffstat (limited to 'excelize_test.go')
-rw-r--r--excelize_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go
index 7d37a6a..09bfef1 100644
--- a/excelize_test.go
+++ b/excelize_test.go
@@ -26,6 +26,11 @@ func TestExcelize(t *testing.T) {
file.GetCellValue("Sheet2", "C11")
file.GetCellValue("Sheet2", "D11")
file.GetCellValue("Sheet2", "D12")
+ // Test SetCellValue function
+ file.SetCellValue("Sheet2", "F1", "Hello")
+ file.SetCellValue("Sheet2", "G1", []byte("World"))
+ file.SetCellValue("Sheet2", "F2", 42)
+ file.SetCellValue("Sheet2", "G2", nil)
// Test read cell value with given axis large than exists row
file.GetCellValue("Sheet2", "E13")