Commit 9188d094 authored by GoshaZotov's avatar GoshaZotov

add tests for BINOM.DIST formula

parent d7656ac7
......@@ -2928,6 +2928,17 @@ $( function () {
} );
test( "Test: \"BINOM.DIST\"", function () {
ws.getRange2( "A2" ).setValue( "6" );
ws.getRange2( "A3" ).setValue( "10" );
ws.getRange2( "A4" ).setValue( "0.5" );
oParser = new parserFormula( "BINOM.DIST(A2,A3,A4,FALSE)", "A1", ws );
ok( oParser.parse() );
strictEqual( difBetween( oParser.calculate().getValue().toFixed( 7 ) - 0, 0.2050781 ), true );
} );
test( "Test: \"CONFIDENCE\"", function () {
oParser = new parserFormula( "CONFIDENCE(0.4,5,12)", "A1", 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