Skip to content

Commit

Permalink
Failing test case for ceil function
Browse files Browse the repository at this point in the history
  • Loading branch information
fkleon committed Mar 7, 2020
1 parent 902c337 commit 2241566
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/parser_test_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,24 @@ class ParserTests extends TestSet {
rpnTokenStreams
.add([new Token('10', TokenType.VAL), new Token('sgn', TokenType.SGN)]);

// Ceil
inputStrings.add('ceil(9.5)');
tokenStreams.add([
new Token('ceil', TokenType.CEIL),
new Token('(', TokenType.LBRACE),
new Token('9.5', TokenType.VAL),
new Token(')', TokenType.RBRACE)
]);

// Ceil
inputStrings.add('floor(9.5)');
tokenStreams.add([
new Token('floor', TokenType.FLOOR),
new Token('(', TokenType.LBRACE),
new Token('9.5', TokenType.VAL),
new Token(')', TokenType.RBRACE)
]);

// n-th root
inputStrings.add('nrt(2,10)');
tokenStreams.add([
Expand Down

0 comments on commit 2241566

Please sign in to comment.