Commit 85cc939e authored by GoshaZotov's avatar GoshaZotov

add tests for BETA.INV

parent 0ed8f6ba
......@@ -1042,6 +1042,18 @@ $( function () {
strictEqual( oParser.calculate().getValue().toFixed(6) - 0, 0.068094, "GAMMA.DIST(A2,A3,A4,TRUE)" );
} );
test( "Test: \"BETA.INV\"", function () {
ws.getRange2( "A2" ).setValue( "0.685470581" );
ws.getRange2( "A3" ).setValue( "8" );
ws.getRange2( "A4" ).setValue( "10" );
ws.getRange2( "A5" ).setValue( "1" );
ws.getRange2( "A6" ).setValue( "3" );
oParser = new parserFormula( "BETA.INV(A2,A3,A4,A5,A6)", "A1", ws );
ok( oParser.parse(), "BETA.INV(A2,A3,A4,A5,A6)" );
strictEqual( oParser.calculate().getValue().toFixed(1) - 0, 2, "BETA.INV(A2,A3,A4,A5,A6)" );
} );
test( "Test: \"GAMMA.INV\"", function () {
ws.getRange2( "A2" ).setValue( "0.068094" );
ws.getRange2( "A3" ).setValue( "9" );
......
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