Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
8938e6ad
Commit
8938e6ad
authored
7 years ago
by
GoshaZotov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tests for BETA.DIST
parent
fca36454
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
cell/.unit-tests/FormulaTests.js
cell/.unit-tests/FormulaTests.js
+16
-0
No files found.
cell/.unit-tests/FormulaTests.js
View file @
8938e6ad
...
...
@@ -1054,6 +1054,22 @@ $( function () {
strictEqual
(
oParser
.
calculate
().
getValue
().
toFixed
(
1
)
-
0
,
2
,
"
BETA.INV(A2,A3,A4,A5,A6)
"
);
}
);
test
(
"
Test:
\"
BETA.DIST
\"
"
,
function
()
{
ws
.
getRange2
(
"
A2
"
).
setValue
(
"
2
"
);
ws
.
getRange2
(
"
A3
"
).
setValue
(
"
8
"
);
ws
.
getRange2
(
"
A4
"
).
setValue
(
"
10
"
);
ws
.
getRange2
(
"
A5
"
).
setValue
(
"
1
"
);
ws
.
getRange2
(
"
A6
"
).
setValue
(
"
3
"
);
oParser
=
new
parserFormula
(
"
BETA.DIST(A2,A3,A4,TRUE,A5,A6)
"
,
"
A1
"
,
ws
);
ok
(
oParser
.
parse
(),
"
BETA.DIST(A2,A3,A4,TRUE,A5,A6)
"
);
strictEqual
(
oParser
.
calculate
().
getValue
().
toFixed
(
7
)
-
0
,
0.6854706
,
"
BETA.DIST(A2,A3,A4,TRUE,A5,A6)
"
);
oParser
=
new
parserFormula
(
"
BETA.DIST(A2,A3,A4,FALSE,A5,A6)
"
,
"
A1
"
,
ws
);
ok
(
oParser
.
parse
(),
"
BETA.DIST(A2,A3,A4,FALSE,A5,A6)
"
);
strictEqual
(
oParser
.
calculate
().
getValue
().
toFixed
(
7
)
-
0
,
1.4837646
,
"
BETA.DIST(A2,A3,A4,FALSE,A5,A6)
"
);
}
);
test
(
"
Test:
\"
GAMMA.INV
\"
"
,
function
()
{
ws
.
getRange2
(
"
A2
"
).
setValue
(
"
0.068094
"
);
ws
.
getRange2
(
"
A3
"
).
setValue
(
"
9
"
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment