summaryrefslogtreecommitdiff
path: root/calc_test.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-08-17 10:59:52 +0800
committerGitHub <noreply@github.com>2022-08-17 10:59:52 +0800
commitd1e76fc432ac5c9bde99591ec5e88e46b62d9c3d (patch)
tree8e5c13bff106593ecd5dbabbd0a4fae4fefe901e /calc_test.go
parent551fb8a9e4b03fe718a339e75aeacc8b5581378a (diff)
This closes #1319, fix calculate error for formula with negative symbol
- Update unit test and comment for the functions
Diffstat (limited to 'calc_test.go')
-rw-r--r--calc_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/calc_test.go b/calc_test.go
index 47cd806..5822135 100644
--- a/calc_test.go
+++ b/calc_test.go
@@ -491,6 +491,7 @@ func TestCalcCellValue(t *testing.T) {
// COS
"=COS(0.785398163)": "0.707106781467586",
"=COS(0)": "1",
+ "=-COS(0)": "-1",
"=COS(COS(0))": "0.54030230586814",
// COSH
"=COSH(0)": "1",