name:
src/test/js/execution/ExecutorStringTest.ts
-rw-r--r--
774
1import { runner, it, describe } from "../testutils/TestUtils";
2
3describe("Executor.execute - String", function () {
4 it("should execute empty string", function () {
5 runner().addCell("Alpha", "A1", '= ""').addExpectedValue("Alpha", "A1", "").run();
6 });
7
8 it("should execute non-empty string", function () {
9 runner()
10 .addCell("Alpha", "A1", '= "I am the very model of a modern major general."')
11 .addExpectedValue("Alpha", "A1", "I am the very model of a modern major general.")
12 .run();
13 runner()
14 .addCell("Alpha", "A1", '= "32879834"')
15 .addExpectedValue("Alpha", "A1", "32879834")
16 .run();
17 runner()
18 .addCell("Alpha", "A1", "= \"'Weird.'\"")
19 .addExpectedValue("Alpha", "A1", "'Weird.'")
20 .run();
21 });
22});