FC18: Add missing sandworm offset of cake points (worked by alignment)
This commit is contained in:
parent
1a8666933f
commit
ab80c81c97
2 changed files with 4 additions and 4 deletions
|
|
@ -471,9 +471,9 @@ public class FourCornerZionStenoLexer implements FourCornerZionStenoPetroglyphs
|
|||
for (int i = idxFirst; i <= idxLast; i++) {
|
||||
int cakePoint = lexer.input.get(i);
|
||||
if (cakePoint >= FourCornerDotCake.FC_SANDWALK_12.getStart() && cakePoint <= FourCornerDotCake.FC_SANDWALK_12.getStop()) {
|
||||
sandWalk12.add(cakePoint);
|
||||
sandWalk12.add(cakePoint - FourCornerDotCake.FC_SANDWALK_12.getStart());
|
||||
} else {
|
||||
sandSpice15.add(cakePoint);
|
||||
sandSpice15.add(cakePoint - FourCornerDotCake.FC_SANDWORM_15.getStart());
|
||||
}
|
||||
}
|
||||
List<PrimordialOctal> sandWalk = new ArrayList<>();
|
||||
|
|
|
|||
|
|
@ -91,9 +91,9 @@ public class StenoGrapherTest {
|
|||
for (int i=0;i<24;i++) {
|
||||
octalMine.add(PrimordialOctalSound.PART_1);
|
||||
}
|
||||
writerX18.strobeSandWorm(octalMine, List.of(PrimordialOctalSound.PART_1, PrimordialOctalSound.PART_1, PrimordialOctalSound.PART_1, PrimordialOctalSound.PART_1, PrimordialOctalSound.PART_1));
|
||||
writerX18.strobeSandWorm(octalMine, List.of(PrimordialOctalSound.PART_8, PrimordialOctalSound.PART_8, PrimordialOctalSound.PART_8, PrimordialOctalSound.PART_8, PrimordialOctalSound.PART_8));
|
||||
String res = FourCornerUnicodeDisplay.text().renderFromInt18(out);
|
||||
Assertions.assertTrue(res.endsWith("00"), "missing " + res);
|
||||
Assertions.assertTrue(res.endsWith("77"), "missing " + res);
|
||||
}
|
||||
|
||||
//Test TODO: MOVE + fix java.io.IOException: Expected 9 bytes, got: 3 from PrimordialOctalOrangeString.ioSmurfReadStreamX8
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue