Files
mg4/app/src/test/java/com/evsuite/abrp/CruiseLogTest.java
T
nilsandClaude Opus 5.5 965a20cfb2 App 2.27.3: read the cruise control target speed, log it raw
The head unit names a vendor float AAD_EPTCCTRGTSPD (0x2160A15B),
the cruise control target speed by its name. EVHardware reads it raw;
the Logs tab lists each change with time, speed and gear, to establish
the unit and the off value on the car. Emulator only (absent there).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LhzAVaUyqcw5PkGjz4mWW6
2026-10-24 21:58:12 +02:00

19 lines
522 B
Java

package com.evsuite.abrp;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/** The cruise control log's value format — pure JVM. */
public class CruiseLogTest {
@Test
public void oneDecimalOrUnread() {
assertEquals("120.0", CruiseLog.format(120f));
assertEquals("33.3", CruiseLog.format(33.33f));
assertEquals("0.0", CruiseLog.format(0f));
assertEquals("unread", CruiseLog.format(null));
assertEquals("unread", CruiseLog.format(Float.NaN));
}
}