FC18: Made method name for signed int equal to enum type name

This commit is contained in:
Willem Cazander 2025-09-06 09:47:55 +02:00
parent 81e1647c27
commit 0978f50805
5 changed files with 8 additions and 9 deletions

View file

@ -29,7 +29,6 @@ import java.util.List;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.x4o.fc18.FourCornerUnicodeDisplay;
import org.x4o.fc18.octal8.PrimordialOctal;
import org.x4o.fc18.zion7.flame4.FCFlameFremanLegoBase2;
import org.x4o.fc18.zion7.flame4.FCFlameFremanSignedBase2;
@ -54,7 +53,7 @@ public class StenoNumberBase2Test {
public void testBASE2Int123() throws Exception {
List<Integer> outX18 = new ArrayList<>();
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
writerX18.strobeNumberBASE2Int(FCFlameFremanSignedBase2.SIGNED_0128, true, BigInteger.valueOf(123));
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0128, true, BigInteger.valueOf(123));
String resX18 = FourCornerUnicodeDisplay.text().renderFromInt18(outX18);
Assertions.assertEquals("-123", resX18);
}
@ -73,9 +72,9 @@ public class StenoNumberBase2Test {
public void testBASE2IntMax() throws Exception {
List<Integer> outX18 = new ArrayList<>();
FourCornerZion7Candlelier writerX18 = FourCornerZionStenoGrapher.writerX18(outX18);
writerX18.strobeNumberBASE2Int(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF));
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF));
Assertions.assertThrows(IllegalArgumentException.class, () -> {
writerX18.strobeNumberBASE2Int(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF + 1));
writerX18.strobeNumberBASE2Signed(FCFlameFremanSignedBase2.SIGNED_0016, false, BigInteger.valueOf(0x7FFF + 1));
});
}
}