FC18: Renamed steno grapher to use steno tongue names
This commit is contained in:
parent
b289a8c9bf
commit
63f4691e70
10 changed files with 54 additions and 61 deletions
|
|
@ -43,7 +43,7 @@ public class FCNumberGramTest {
|
|||
@Test
|
||||
public void testCut10Simple() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerX18(out);
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerFC18(out);
|
||||
writer.strobeNumberGrams(FCFlameNumberGram.CUT_10, List.of(0,1,2,3,4,5,6,7,8,9));
|
||||
String res = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
||||
Assertions.assertEquals("0123456789", res);
|
||||
|
|
@ -52,7 +52,7 @@ public class FCNumberGramTest {
|
|||
@Test
|
||||
public void testCutArguFail() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerX18(out);
|
||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerFC18(out);
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
writer.strobeNumberGrams(FCFlameNumberGram.CUT_10, List.of(10));
|
||||
});
|
||||
|
|
|
|||
|
|
@ -54,17 +54,17 @@ public class StenoGrapherTest {
|
|||
@Test
|
||||
public void testStenoTongueLimits() throws Exception {
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
FourCornerZionStenoGrapher.writerX06(new ArrayList<>()).strobeTheWord(FCFlameWordDish.APPETIZER, 0x040000);
|
||||
FourCornerZionStenoGrapher.writerFC6Plus(new ArrayList<>()).strobeTheWord(FCFlameWordDish.APPETIZER, 0x040000);
|
||||
});
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
FourCornerZionStenoGrapher.writerX18(new ArrayList<>()).strobeTheWord(FCFlameWordDish.APPETIZER, 0x040000);
|
||||
FourCornerZionStenoGrapher.writerFC18(new ArrayList<>()).strobeTheWord(FCFlameWordDish.APPETIZER, 0x040000);
|
||||
});
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testStenoAutoFC6Plus() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Bereshit writerFC06 = FourCornerZionStenoGrapher.writerX06(out);
|
||||
FourCornerZion7Bereshit writerFC06 = FourCornerZionStenoGrapher.writerFC6Plus(out);
|
||||
writerFC06.strobeTheWord(FCFlameWordDish.CANDY_PIE, 0x00012D);
|
||||
writerFC06.strobeTheWord(FCFlameWordDish.APPETIZER, FCDotCDC1604DashP6.NX01_A.baklavaPointDotIndex());
|
||||
Assertions.assertEquals(7, out.size());
|
||||
|
|
@ -83,7 +83,7 @@ public class StenoGrapherTest {
|
|||
@Test
|
||||
public void testSandWorm() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(out);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(out);
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
writerX18.strobeSandWorm(List.of(PrimordialOctalSound.PART_1), List.of(PrimordialOctalSound.PART_1));
|
||||
});
|
||||
|
|
@ -102,7 +102,7 @@ public class StenoGrapherTest {
|
|||
try (OutputStream out = new FileOutputStream(testFile)) {
|
||||
//FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18PackedX8(out);
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeDocumentAlpha();
|
||||
for (int x = 1; x <= 1025 /*_999999*/; x++) {
|
||||
BigInteger v = BigInteger.valueOf(x);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class StenoNumberBase2Test {
|
|||
@Test
|
||||
public void testBASE2Lego123456789FC6() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Bereshit writer = FourCornerZionStenoGrapher.writerX06(out);
|
||||
FourCornerZion7Bereshit writer = FourCornerZionStenoGrapher.writerFC6(out);
|
||||
writer.strobeNumberBASE2Lego(FCFlameFremanLegoBase2.LEGO_0032, BigInteger.valueOf(123456789));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
||||
Assertions.assertEquals("123456789", resX18);
|
||||
|
|
@ -53,7 +53,7 @@ public class StenoNumberBase2Test {
|
|||
@Test
|
||||
public void testBASE2Lego123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE2Lego(FCFlameFremanLegoBase2.LEGO_0032, BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("123", resX18);
|
||||
|
|
@ -62,7 +62,7 @@ public class StenoNumberBase2Test {
|
|||
@Test
|
||||
public void testBASE2Signed123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0128, true, BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("-123", resX18);
|
||||
|
|
@ -71,7 +71,7 @@ public class StenoNumberBase2Test {
|
|||
@Test
|
||||
public void testBASE2LegoMax() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE2Lego(FCFlameFremanLegoBase2.LEGO_0016, BigInteger.valueOf(0xFFFF));
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
writerX18.strobeNumberBASE2Lego(FCFlameFremanLegoBase2.LEGO_0016, BigInteger.valueOf(0xFFFF + 1));
|
||||
|
|
@ -81,7 +81,7 @@ public class StenoNumberBase2Test {
|
|||
@Test
|
||||
public void testBASE2SignedMax() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF));
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF + 1));
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8Lego123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE8Lego(FCFlameFremanLegoBase8.LEGO_0144, BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("123", resX18);
|
||||
|
|
@ -53,7 +53,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8Lego123456() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE8Lego(FCFlameFremanLegoBase8.LEGO_0144, BigInteger.valueOf(123456));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("123456", resX18);
|
||||
|
|
@ -62,7 +62,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8Choco123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE8Choco(FCFlameFremanChocoBase8.CHOCO_0144, FCFlameNumberTaste.NUMBER_POSITIVE, new BigInteger("123", 10));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("123", resX18);
|
||||
|
|
@ -71,7 +71,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8Choco123456Neg() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE8Choco(FCFlameFremanChocoBase8.CHOCO_0144, FCFlameNumberTaste.NUMBER_NEGATIVE, new BigInteger("123456", 10));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("-123456", resX18);
|
||||
|
|
@ -80,7 +80,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8ChocoLarge() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberBASE8Choco(FCFlameFremanChocoBase8.CHOCO_0144, FCFlameNumberTaste.NUMBER_POSITIVE, new BigInteger("1393796574908163946345982392040522594123775", 10));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("1393796574908163946345982392040522594123775", resX18);
|
||||
|
|
@ -89,7 +89,7 @@ public class StenoNumberBase8Test {
|
|||
@Test
|
||||
public void testBASE8ChocoLargeFC6() throws Exception {
|
||||
List<Integer> out = new ArrayList<>();
|
||||
FourCornerZion7Bereshit writer = FourCornerZionStenoGrapher.writerX06(out);
|
||||
FourCornerZion7Bereshit writer = FourCornerZionStenoGrapher.writerFC6Plus(out);
|
||||
writer.strobeNumberBASE8Choco(FCFlameFremanChocoBase8.CHOCO_0144, FCFlameNumberTaste.NUMBER_POSITIVE, new BigInteger("1393796574908163946345982392040522594123775", 10));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
||||
Assertions.assertEquals("1393796574908163946345982392040522594123775", resX18);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class StenoNumberChocoChopedTest {
|
|||
@Test
|
||||
public void testChochChoped123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigChoped(FCFlameNumberTaste.NUMBER_POSITIVE, BigInteger.valueOf(456), BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("456.123", resX18);
|
||||
|
|
@ -51,7 +51,7 @@ public class StenoNumberChocoChopedTest {
|
|||
@Test
|
||||
public void testChochChopedNeg456() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigChoped(FCFlameNumberTaste.NUMBER_NEGATIVE, BigInteger.valueOf(789), BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("-789.123", resX18);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class StenoNumberChocoDecimalTest {
|
|||
@Test
|
||||
public void testChocoDecimal456() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigDecimal(FCFlameNumberTaste.NUMBER_POSITIVE, false, BigInteger.valueOf(123), BigInteger.valueOf(456));
|
||||
Assertions.assertEquals(4, outX18.size());
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
|
|
@ -54,7 +54,7 @@ public class StenoNumberChocoDecimalTest {
|
|||
Assertions.assertEquals(283, FourCornerZionStenoPetroglyphs.BIG_BITS_283.toString(2).length());
|
||||
Assertions.assertEquals(2016, FourCornerZionStenoPetroglyphs.BIG_BITS_2016.toString(2).length());
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigDecimal(FCFlameNumberTaste.NUMBER_POSITIVE, false, FourCornerZionStenoPetroglyphs.BIG_BITS_283, FourCornerZionStenoPetroglyphs.BIG_BITS_2016);
|
||||
Assertions.assertEquals(193, outX18.size());
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class StenoNumberChocoFloatTest {
|
|||
@Test
|
||||
public void testChochFloat123() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigFloat(FCFlameNumberTaste.NUMBER_NEGATIVE, false, BigInteger.valueOf(456), BigInteger.valueOf(123));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("(-1)¹*2⁴⁵⁶*1.123", resX18);
|
||||
|
|
@ -51,7 +51,7 @@ public class StenoNumberChocoFloatTest {
|
|||
@Test
|
||||
public void testChochFloatNeg456() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
writerX18.strobeNumberChocoPigFloat(FCFlameNumberTaste.NUMBER_POSITIVE, true, BigInteger.valueOf(456), BigInteger.valueOf(789));
|
||||
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
|
||||
Assertions.assertEquals("(-1)⁰*2⁻⁴⁵⁶*1.789", resX18);
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ public class StenoNumberChocoRationalTest {
|
|||
@Test
|
||||
public void testChocoRationalValues() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
BigInteger v1 = BigInteger.valueOf(123);
|
||||
writerX18.strobeNumberChocoPigRational(FCFlameNumberTaste.NUMBER_POSITIVE, FCFlameNumberTaste.NUMBER_POSITIVE, BigInteger.ONE, v1);
|
||||
BigInteger v2 = BigInteger.valueOf(12345);
|
||||
|
|
@ -58,7 +58,7 @@ public class StenoNumberChocoRationalTest {
|
|||
@Test
|
||||
public void testChocoRationalCount1024() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
for (int x = 1; x <= 1025; x++) {
|
||||
BigInteger v = BigInteger.valueOf(x);
|
||||
writerX18.strobeNumberChocoPigRational(FCFlameNumberTaste.NUMBER_POSITIVE, FCFlameNumberTaste.NUMBER_POSITIVE, BigInteger.ONE, v);
|
||||
|
|
@ -72,7 +72,7 @@ public class StenoNumberChocoRationalTest {
|
|||
@Test
|
||||
public void testChocoRationalValuesMax() throws Exception {
|
||||
List<Integer> outX18 = new ArrayList<>();
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
|
||||
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerFC18(outX18);
|
||||
BigInteger maxValue = FourCornerZionStenoPetroglyphs.BIG_BITS_1148;
|
||||
writerX18.strobeNumberChocoPigRational(FCFlameNumberTaste.NUMBER_POSITIVE, FCFlameNumberTaste.NUMBER_POSITIVE, maxValue, maxValue);
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue