diff options
author | xuri <xuri.me@gmail.com> | 2021-04-02 22:41:33 +0800 |
---|---|---|
committer | xuri <xuri.me@gmail.com> | 2021-04-02 22:41:33 +0800 |
commit | 6e812a27c6e74a141e301c0f19484743ea437c52 (patch) | |
tree | 3efec383109790aea75835aa33749266b956552f /calc_test.go | |
parent | a002a2417e9cc9d8dc3d405d2d96f7dd24710082 (diff) |
#65 fn: BESSELI and BESSELJ
Diffstat (limited to 'calc_test.go')
-rw-r--r-- | calc_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/calc_test.go b/calc_test.go index c4f1924..04f95bc 100644 --- a/calc_test.go +++ b/calc_test.go @@ -47,6 +47,11 @@ func TestCalcCellValue(t *testing.T) { "=2>=3": "FALSE", "=1&2": "12", // Engineering Functions + // BESSELI + "=BESSELI(4.5,1)": "15.389222753735925", + "=BESSELI(32,1)": "5.502845511211247e+12", + // BESSELJ + "=BESSELJ(1.9,2)": "0.329925727692387", // BIN2DEC "=BIN2DEC(\"10\")": "2", "=BIN2DEC(\"11\")": "3", @@ -1008,6 +1013,14 @@ func TestCalcCellValue(t *testing.T) { mathCalcError := map[string]string{ "=1/0": "#DIV/0!", // Engineering Functions + // BESSELI + "=BESSELI()": "BESSELI requires 2 numeric arguments", + "=BESSELI(\"\",0)": "strconv.ParseFloat: parsing \"\": invalid syntax", + "=BESSELI(0,\"\")": "strconv.ParseFloat: parsing \"\": invalid syntax", + // BESSELJ + "=BESSELJ()": "BESSELJ requires 2 numeric arguments", + "=BESSELJ(\"\",0)": "strconv.ParseFloat: parsing \"\": invalid syntax", + "=BESSELJ(0,\"\")": "strconv.ParseFloat: parsing \"\": invalid syntax", // BIN2DEC "=BIN2DEC()": "BIN2DEC requires 1 numeric argument", "=BIN2DEC(\"\")": "strconv.ParseFloat: parsing \"\": invalid syntax", |