mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
SerialModemTest: say() documented (doc_check)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRTB3RLw6uwCRCpEmpk
This commit is contained in:
1 file changed
+1
@@ -61,6 +61,7 @@ class SerialModemTest {
|
||||
fun statusFromCarrierAndResults() {
|
||||
val seen = mutableListOf<NativeModem.Status>()
|
||||
val r = ResultCodeStatus { seen += it }
|
||||
/** [s] fed to the status as the modem's output */
|
||||
fun say(s: String) = s.toByteArray().let { r.feed(it, it.size) }
|
||||
r.carrier(true)
|
||||
assertEquals(NativeModem.Status(NativeModem.Link.ONLINE, true, 0, 0), seen.last())
|
||||
|
||||
Reference in new issue
Block a user