summaryrefslogtreecommitdiff
path: root/docProps_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'docProps_test.go')
-rw-r--r--docProps_test.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/docProps_test.go b/docProps_test.go
index ef930ae..071e7ef 100644
--- a/docProps_test.go
+++ b/docProps_test.go
@@ -1,11 +1,13 @@
-// Copyright 2016 - 2020 The excelize Authors. All rights reserved. Use of
+// Copyright 2016 - 2021 The excelize Authors. All rights reserved. Use of
// this source code is governed by a BSD-style license that can be found in
// the LICENSE file.
//
// Package excelize providing a set of functions that allow you to write to
-// and read from XLSX files. Support reads and writes XLSX file generated by
-// Microsoft Excelâ„¢ 2007 and later. Support save file without losing original
-// charts of XLSX. This library needs Go version 1.10 or later.
+// and read from XLSX / XLSM / XLTM files. Supports reading and writing
+// spreadsheet documents generated by Microsoft Excelâ„¢ 2007 and later. Supports
+// complex components by high compatibility, and provided streaming API for
+// generating or reading data from a worksheet with huge amounts of data. This
+// library needs Go version 1.10 or later.
package excelize
@@ -43,7 +45,7 @@ func TestSetDocProps(t *testing.T) {
f.XLSX["docProps/core.xml"] = nil
assert.NoError(t, f.SetDocProps(&DocProperties{}))
- // Test unsupport charset
+ // Test unsupported charset
f = NewFile()
f.XLSX["docProps/core.xml"] = MacintoshCyrillicCharset
assert.EqualError(t, f.SetDocProps(&DocProperties{}), "xml decode error: XML syntax error on line 1: invalid UTF-8")
@@ -61,7 +63,7 @@ func TestGetDocProps(t *testing.T) {
_, err = f.GetDocProps()
assert.NoError(t, err)
- // Test unsupport charset
+ // Test unsupported charset
f = NewFile()
f.XLSX["docProps/core.xml"] = MacintoshCyrillicCharset
_, err = f.GetDocProps()