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/java/io/protobase/f7/spreadsheet/GeneralStringTest.java
-rw-r--r--
749
 1package io.protobase.f7.spreadsheet;
 2
 3import io.protobase.f7.testutils.TestExecution;
 4import org.junit.Test;
 5
 6public class GeneralStringTest extends TestExecution {
 7  @Test
 8  public void test_Empty() {
 9    runner().addCell("Alpha", "A1", "= \"\"").addExpectedValue("Alpha", "A1", "").run();
10  }
11
12  @Test
13  public void test_Filled() {
14    runner().addCell("Alpha", "A1", "= \"I am the very model of a modern major general.\"")
15        .addExpectedValue("Alpha", "A1", "I am the very model of a modern major general.")
16        .run();
17    runner().addCell("Alpha", "A1", "= \"32879834\"").addExpectedValue("Alpha", "A1", "32879834").run();
18    runner().addCell("Alpha", "A1", "= \"'Weird.'\"").addExpectedValue("Alpha", "A1", "'Weird.'").run();
19  }
20}