diff options
| author | Ri Xu <xuri.me@gmail.com> | 2017-07-30 15:46:04 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2017-07-30 15:46:04 +0800 |
| commit | 308776e350334a8daddcf5f502ee7547f01cc64c (patch) | |
| tree | 8cc7850e18b2d5dae995c213d27bcb0fab7794c9 /excelize_test.go | |
| parent | 1d54bd4df6542edcce1f820c0b29e2cc00f10563 (diff) | |
Optimize code, go test and godoc updated.
Diffstat (limited to 'excelize_test.go')
| -rw-r--r-- | excelize_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/excelize_test.go b/excelize_test.go index 970973a..c01e277 100644 --- a/excelize_test.go +++ b/excelize_test.go @@ -213,6 +213,10 @@ func TestSetCellHyperLink(t *testing.T) { xlsx.SetCellHyperLink("sheet1", "B19", "https://github.com/xuri/excelize", "External") // Test add first hyperlink in a work sheet. xlsx.SetCellHyperLink("sheet2", "C1", "https://github.com/xuri/excelize", "External") + // Test add Location hyperlink in a work sheet. + xlsx.SetCellHyperLink("sheet2", "D6", "Sheet1!D8", "Location") + xlsx.SetCellHyperLink("sheet2", "C3", "Sheet1!D8", "") + xlsx.SetCellHyperLink("sheet2", "", "Sheet1!D60", "Location") err = xlsx.Save() if err != nil { t.Log(err) |
