FC18: Corrected number gram cut 10 max value cut count size check
This commit is contained in:
parent
8c43b8dd63
commit
4c2fbcfe2b
2 changed files with 3 additions and 4 deletions
|
|
@ -156,10 +156,6 @@ public class FourCornerUnicodeDisplay {
|
||||||
output.appendCodePoint(FCDotPIE9DDash09.IMG_ESC_DEC.codePointDotIndex());
|
output.appendCodePoint(FCDotPIE9DDash09.IMG_ESC_DEC.codePointDotIndex());
|
||||||
}
|
}
|
||||||
// TODO: rm after file loading
|
// TODO: rm after file loading
|
||||||
if (FourCornerDotCake.FC_UWU0101_S1.equals(slice)) {
|
|
||||||
output.append("1");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if (FourCornerDotCake.FC_F4TXT0001_SP.equals(slice)) {
|
if (FourCornerDotCake.FC_F4TXT0001_SP.equals(slice)) {
|
||||||
output.appendCodePoint(' ');
|
output.appendCodePoint(' ');
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,9 @@ public class FCNumberGramTest {
|
||||||
public void testCutArguFail() throws Exception {
|
public void testCutArguFail() throws Exception {
|
||||||
List<Integer> out = new ArrayList<>();
|
List<Integer> out = new ArrayList<>();
|
||||||
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerX18(out);
|
FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerX18(out);
|
||||||
|
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||||
|
writer.strobeNumberGrams(FourCornerZion7NumberGram.CUT_10, List.of(10));
|
||||||
|
});
|
||||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||||
writer.strobeNumberGrams(FourCornerZion7NumberGram.CUT_10, List.of(11));
|
writer.strobeNumberGrams(FourCornerZion7NumberGram.CUT_10, List.of(11));
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue