f7
f7 is a spreadsheet formula execution library
git clone https://git.vogt.world/f7.git
Log | Files | README.md | LICENSE.md
← All files
name: src/test/js/execution/ExecutorSupportedParserFormulasTest.ts
-rw-r--r--
457
 1import { runner, it, describe } from "../testutils/TestUtils";
 2
 3describe("Executor.execute - Parser Formulas", function () {
 4  it("should support TO_TEXT", function () {
 5    runner().addCell("Alpha", "A1", "=TO_TEXT(1/2)").addExpectedValue("Alpha", "A1", "0.5").run();
 6  });
 7
 8  it("should support TO_PERCENT", function () {
 9    runner()
10      .addCell("Alpha", "A1", "=TO_PERCENT(2.11)")
11      .addExpectedValue("Alpha", "A1", 2.11)
12      .run();
13  });
14});