App 2.37.0: Overview styles Time circuits and Quest
Time circuits, after Back to the Future: three LED rows (the car as the destination, the present time, the last departure from P), the speed in red digits and a flux capacitor that flows with the power; at 88 km/h it all flashes. Letters on fourteen segments (Segments14, tested). Quest, after World of Warcraft's interface: player frame, minimap, gold speed, cast bar, quest tracker, chat, action bar and the odometer as experience. Both in their own colours, the app with them. In THEMES.md with screenshots. Emulator only; not tried on the car. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
package com.evsuite.abrp;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNotEquals;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
/** The time circuits' fourteen-segment letters — pure JVM. */
|
||||
public class Segments14Test {
|
||||
|
||||
@Test
|
||||
public void everyMonthAndGearWordLightsEveryLetter() {
|
||||
for (int m = 0; m < 12; m++) {
|
||||
for (char ch : Segments14.month(m).toCharArray()) assertNotEquals(ch + "", 0, Segments14.mask(ch));
|
||||
}
|
||||
for (int g = 1; g <= 4; g++) {
|
||||
for (char ch : Segments14.gearWord(g).toCharArray()) assertNotEquals(ch + "", 0, Segments14.mask(ch));
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void unreadIsDashes() {
|
||||
assertEquals("---", Segments14.gearWord(null));
|
||||
assertEquals("---", Segments14.gearWord(9));
|
||||
assertEquals("---", Segments14.month(12));
|
||||
assertEquals(Segments14.G1 | Segments14.G2, Segments14.mask('-'));
|
||||
assertEquals(0, Segments14.mask(' '));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void wordsAsTheCircuitsShowThem() {
|
||||
assertEquals("OCT", Segments14.month(9));
|
||||
assertEquals("DRV", Segments14.gearWord(4));
|
||||
assertEquals("PRK", Segments14.gearWord(1));
|
||||
// The letters that need the diagonals do use them.
|
||||
assertNotEquals(0, Segments14.mask('N') & Segments14.H);
|
||||
assertNotEquals(0, Segments14.mask('V') & Segments14.K);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user