1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Clean up output.

This commit is contained in:
Thomas Harte 2023-08-29 17:07:35 -04:00
parent c160482b0a
commit 74b416f985

View File

@ -53,8 +53,10 @@ class BCDTest: XCTestCase, CSTestMachineTrapHandler {
let machine6502 = testMachine as! CSTestMachine6502
// Only OSWRCH is trapped, so...
let character = machine6502.value(for: .A)
output.append(Character(UnicodeScalar(character)!))
let character = Character(UnicodeScalar(machine6502.value(for: .A))!)
if character != "\r" { // The test internally uses \r\n; keep only one of those.
output.append(character)
}
}
}