Commit 9fd9411b authored by GoshaZotov's avatar GoshaZotov

add tests for POISSON.DIST formula

parent 6339a5f7
......@@ -4107,6 +4107,19 @@ $( function () {
strictEqual( oParser.calculate().getValue(), "#NUM!" );
} );
test( "Test: \"POISSON.DIST\"", function () {
ws.getRange2( "A202" ).setValue( "2" );
ws.getRange2( "A203" ).setValue( "5" );
oParser = new parserFormula( "POISSON.DIST(A202,A203,TRUE)", "A1", ws );
ok( oParser.parse(), "POISSON.DIST(A202,A203,TRUE)" );
strictEqual( oParser.calculate().getValue().toFixed(6) - 0, 0.124652, "POISSON.DIST(A202,A203,TRUE)" );
oParser = new parserFormula( "POISSON.DIST(A202,A203,FALSE)", "A1", ws );
ok( oParser.parse(), "POISSON.DIST(A202,A203,FALSE)" );
strictEqual( oParser.calculate().getValue().toFixed(6) - 0, 0.084224, "POISSON.DIST(A202,A203,FALSE)" );
} );
test( "Test: \"PROB\"", function () {
oParser = new parserFormula( "PROB({0,1,2,3},{0.2,0.3,0.1,0.4},2)", "A2", ws );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment