diff options
author | xuri <xuri.me@gmail.com> | 2022-03-19 00:05:47 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2022-03-19 00:05:47 +0800 |
commit | 94f197c4fe6531f96a42fe4e960c1c921a3ee0e8 (patch) | |
tree | 1506b7d9e7584257768843e7723af2208fe6ce20 /lib_test.go | |
parent | 14b461420fc3d3b06b01d7b0584b422b3e1b40fb (diff) |
This improved formula calculate precision and added zero placeholder number format support
Diffstat (limited to 'lib_test.go')
-rw-r--r-- | lib_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib_test.go b/lib_test.go index 1e2f324..027e5dd 100644 --- a/lib_test.go +++ b/lib_test.go @@ -342,7 +342,7 @@ func TestReadBytes(t *testing.T) { func TestUnzipToTemp(t *testing.T) { os.Setenv("TMPDIR", "test") defer os.Unsetenv("TMPDIR") - assert.NoError(t, os.Chmod(os.TempDir(), 0444)) + assert.NoError(t, os.Chmod(os.TempDir(), 0o444)) f := NewFile() data := []byte("PK\x03\x040000000PK\x01\x0200000" + "0000000000000000000\x00" + @@ -364,7 +364,7 @@ func TestUnzipToTemp(t *testing.T) { _, err = f.unzipToTemp(z.File[0]) require.Error(t, err) - assert.NoError(t, os.Chmod(os.TempDir(), 0755)) + assert.NoError(t, os.Chmod(os.TempDir(), 0o755)) _, err = f.unzipToTemp(z.File[0]) assert.EqualError(t, err, "EOF") |