Commit 4cf710da authored by GoshaZotov's avatar GoshaZotov

add tests for VAR.S formula

parent c472a511
......@@ -4567,6 +4567,27 @@ $( function () {
} );
test( "Test: \"VAR.S\"", function () {
ws.getRange2( "A202" ).setValue( "1345" );
ws.getRange2( "A203" ).setValue( "1301" );
ws.getRange2( "A204" ).setValue( "1368" );
ws.getRange2( "A205" ).setValue( "1322" );
ws.getRange2( "A206" ).setValue( "1310" );
ws.getRange2( "A207" ).setValue( "1370" );
ws.getRange2( "A208" ).setValue( "1318" );
ws.getRange2( "A209" ).setValue( "1350" );
ws.getRange2( "A210" ).setValue( "1303" );
ws.getRange2( "A211" ).setValue( "1299" );
oParser = new parserFormula( "VAR.S(A202:A211)", "A1", ws );
ok( oParser.parse() );
strictEqual( oParser.calculate().getValue().toFixed(2) - 0, 754.27 );
} );
/*
* Lookup and Reference
*/
......
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