Commit 888a8038 authored by GoshaZotov's avatar GoshaZotov

add tests for SHEETS formula

parent cdf788ec
......@@ -2163,6 +2163,17 @@ $( function () {
} );
test( "Test: \"SHEETS\"", function () {
oParser = new parserFormula( "SHEETS(Hi_Temps)", "A2", ws );
ok( oParser.parse() );
strictEqual( oParser.calculate().getValue(), "#NAME?" );
oParser = new parserFormula( "SHEETS()", "A2", ws );
ok( oParser.parse() );
strictEqual( oParser.calculate().getValue(), 3 );
} );
test( "Test: \"TRIM\"", function () {
oParser = new parserFormula( "TRIM(\" abc def \")", "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