diff options
author | xuri <xuri.me@gmail.com> | 2022-09-08 22:20:21 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-09-08 22:20:21 +0800 |
commit | fb1aab7add52808c96c9cc10570fe73ce797b7f4 (patch) | |
tree | 778202a8944ecad3c7f74edf4f9ac4b0a150f79d /crypt_test.go | |
parent | 0c5cdfec1868f31f6e355cdcb0a91220bad80522 (diff) |
This closes #744, the `Save`, `Write` and `WriteTo` function accept saving options
Diffstat (limited to 'crypt_test.go')
-rw-r--r-- | crypt_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypt_test.go b/crypt_test.go index f7c465e..95b6f52 100644 --- a/crypt_test.go +++ b/crypt_test.go @@ -48,6 +48,8 @@ func TestEncrypt(t *testing.T) { cell, err = f.GetCellValue("Sheet1", "A1") assert.NoError(t, err) assert.Equal(t, "SECRET", cell) + // Test remove password by save workbook with options + assert.NoError(t, f.Save(Options{Password: ""})) assert.NoError(t, f.Close()) } |