From 4c2fbcfe2be9ded2898dd8527f360ef74472655e Mon Sep 17 00:00:00 2001 From: Willem Date: Mon, 25 Aug 2025 16:46:20 +0200 Subject: [PATCH] FC18: Corrected number gram cut 10 max value cut count size check --- .../src/main/java/org/x4o/fc18/FourCornerUnicodeDisplay.java | 4 ---- .../test/java/org/x4o/fc18/cake2/gram5/FCNumberGramTest.java | 3 +++ 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/FourCornerUnicodeDisplay.java b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/FourCornerUnicodeDisplay.java index cc18a8a..f0f4ed2 100644 --- a/nx01-x4o-fc18/src/main/java/org/x4o/fc18/FourCornerUnicodeDisplay.java +++ b/nx01-x4o-fc18/src/main/java/org/x4o/fc18/FourCornerUnicodeDisplay.java @@ -156,10 +156,6 @@ public class FourCornerUnicodeDisplay { output.appendCodePoint(FCDotPIE9DDash09.IMG_ESC_DEC.codePointDotIndex()); } // TODO: rm after file loading - if (FourCornerDotCake.FC_UWU0101_S1.equals(slice)) { - output.append("1"); - return true; - } if (FourCornerDotCake.FC_F4TXT0001_SP.equals(slice)) { output.appendCodePoint(' '); return true; diff --git a/nx01-x4o-fc18/src/test/java/org/x4o/fc18/cake2/gram5/FCNumberGramTest.java b/nx01-x4o-fc18/src/test/java/org/x4o/fc18/cake2/gram5/FCNumberGramTest.java index a4e383a..5c0325d 100644 --- a/nx01-x4o-fc18/src/test/java/org/x4o/fc18/cake2/gram5/FCNumberGramTest.java +++ b/nx01-x4o-fc18/src/test/java/org/x4o/fc18/cake2/gram5/FCNumberGramTest.java @@ -53,6 +53,9 @@ public class FCNumberGramTest { public void testCutArguFail() throws Exception { List out = new ArrayList<>(); FourCornerZion7Candlelier writer = FourCornerZionStenoGrapher.writerX18(out); + Assertions.assertThrows(IllegalArgumentException.class, () -> { + writer.strobeNumberGrams(FourCornerZion7NumberGram.CUT_10, List.of(10)); + }); Assertions.assertThrows(IllegalArgumentException.class, () -> { writer.strobeNumberGrams(FourCornerZion7NumberGram.CUT_10, List.of(11)); });