FC18: Forgot that api is incomplete sequence sometimes
This commit is contained in:
parent
f7b80957fb
commit
136088a332
2 changed files with 7 additions and 2 deletions
|
|
@ -249,6 +249,7 @@ public class FourCornerZionStenoGrapher {
|
||||||
FourCornerX00PetitVide pieVide = slice.getVidePoints()[cakePoint - slice.getStart()];
|
FourCornerX00PetitVide pieVide = slice.getVidePoints()[cakePoint - slice.getStart()];
|
||||||
List<Integer> escSeq = pieVide.kaasX06BaklavaSequence().get().baklavaPointSequence();
|
List<Integer> escSeq = pieVide.kaasX06BaklavaSequence().get().baklavaPointSequence();
|
||||||
escSeq.forEach(v -> out.accept(v));
|
escSeq.forEach(v -> out.accept(v));
|
||||||
|
outAdd(FCDotCDC1604DashP6.NS04_RAKA1_INTERROBANG.cakePointDotIndex()); // TODO: fix vide api
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
outAdd(cakePoint);
|
outAdd(cakePoint);
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ import org.junit.jupiter.api.Assertions;
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.x4o.fc18.FourCornerUnicodeDisplay;
|
import org.x4o.fc18.FourCornerUnicodeDisplay;
|
||||||
import org.x4o.fc18.cake2.flag4.FCDotF4TTY0001DashNL;
|
import org.x4o.fc18.cake2.flag4.FCDotF4TTY0001DashNL;
|
||||||
|
import org.x4o.fc18.cake2.zero33.FCDotCDC1604DashP6;
|
||||||
import org.x4o.fc18.octal8.PrimordialOctal;
|
import org.x4o.fc18.octal8.PrimordialOctal;
|
||||||
import org.x4o.fc18.octal8.PrimordialOctalOrangeString;
|
import org.x4o.fc18.octal8.PrimordialOctalOrangeString;
|
||||||
import org.x4o.fc18.zion7.flame4.FCFlameNumberTaste;
|
import org.x4o.fc18.zion7.flame4.FCFlameNumberTaste;
|
||||||
|
|
@ -63,15 +64,18 @@ public class StenoGrapherTest {
|
||||||
List<Integer> out = new ArrayList<>();
|
List<Integer> out = new ArrayList<>();
|
||||||
FourCornerZion7Bereshit writerFC06 = FourCornerZionStenoGrapher.writerX06(out);
|
FourCornerZion7Bereshit writerFC06 = FourCornerZionStenoGrapher.writerX06(out);
|
||||||
writerFC06.strobeTheWord(0x00012D);
|
writerFC06.strobeTheWord(0x00012D);
|
||||||
Assertions.assertEquals(5, out.size());
|
writerFC06.strobeTheWord(FCDotCDC1604DashP6.NX01_A.baklavaPointDotIndex());
|
||||||
|
Assertions.assertEquals(7, out.size());
|
||||||
Iterator<Integer> outTest = out.iterator();
|
Iterator<Integer> outTest = out.iterator();
|
||||||
Assertions.assertEquals(2, outTest.next());
|
Assertions.assertEquals(2, outTest.next());
|
||||||
Assertions.assertEquals(2, outTest.next());
|
Assertions.assertEquals(2, outTest.next());
|
||||||
Assertions.assertEquals(2, outTest.next());
|
Assertions.assertEquals(2, outTest.next());
|
||||||
Assertions.assertEquals(27, outTest.next());
|
Assertions.assertEquals(27, outTest.next());
|
||||||
Assertions.assertEquals(37, outTest.next());
|
Assertions.assertEquals(37, outTest.next());
|
||||||
|
Assertions.assertEquals(4, outTest.next());
|
||||||
|
Assertions.assertEquals(37, outTest.next());
|
||||||
String res = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
String res = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
||||||
Assertions.assertEquals("0", res);
|
Assertions.assertEquals("0A", res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue