| Index: client/tests/client/samples/total/total_test_lib.dart
|
| diff --git a/client/tests/client/samples/total/total_test_lib.dart b/client/tests/client/samples/total/total_test_lib.dart
|
| index a5b08045bc711485dfeb383c3dbcf0532e9b42bf..826f36a0575a378dc063a43a2049f778a54119cb 100644
|
| --- a/client/tests/client/samples/total/total_test_lib.dart
|
| +++ b/client/tests/client/samples/total/total_test_lib.dart
|
| @@ -142,24 +142,26 @@ totalTests() {
|
| });
|
|
|
| test('Scanner', () {
|
| - String input =
|
| - "ROUND(R1C0 * ((R1C1 / 1234.0000) / (1 - POWER(1 + (R1C1 / 1234.5000)," +
|
| - " -12 * R1C2))), 2)";
|
| - Scanner scanner =
|
| - new Scanner.preserveWhitespace(input,
|
| - new CellLocation(null, new RowCol(0, 0)));
|
| - List<Token> tokens = scanner.scan();
|
| -
|
| - List<String> expected = <String>[
|
| - "ROUND", "(", "R1C0", " ", "*", " ", "(", "(", "R1C1", " ", "/", " ",
|
| - "1234", ")", " ", "/", " ", "(", "1", " ", "-", " ", "POWER", "(", "1",
|
| - " ", "+", " ", "(", "R1C1", " ", "/", " ", "1234.5", ")", ",", " ", "-",
|
| - "12", " ", "*", " ", "R1C2", ")", ")", ")", ",", " ", "2", ")", ];
|
| -
|
| - int index = 0;
|
| - tokens.forEach((Token token) {
|
| - Expect.equals(expected[index++], token.toString());
|
| - });
|
| + {
|
| + String input =
|
| + "ROUND(R1C0 * ((R1C1 / 1234.0000) / (1 - POWER(1 + (R1C1 / 1234.5000)," +
|
| + " -12 * R1C2))), 2)";
|
| + Scanner scanner =
|
| + new Scanner.preserveWhitespace(input,
|
| + new CellLocation(null, new RowCol(0, 0)));
|
| + List<Token> tokens = scanner.scan();
|
| +
|
| + List<String> expected = <String>[
|
| + "ROUND", "(", "R1C0", " ", "*", " ", "(", "(", "R1C1", " ", "/", " ",
|
| + "1234", ")", " ", "/", " ", "(", "1", " ", "-", " ", "POWER", "(", "1",
|
| + " ", "+", " ", "(", "R1C1", " ", "/", " ", "1234.5", ")", ",", " ", "-",
|
| + "12", " ", "*", " ", "R1C2", ")", ")", ")", ",", " ", "2", ")", ];
|
| +
|
| + int index = 0;
|
| + tokens.forEach((Token token) {
|
| + Expect.equals(expected[index++], token.toString());
|
| + });
|
| + }
|
|
|
| validate(String input) {
|
| Scanner scanner =
|
|
|