mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 07:31:15 +00:00
Clean up output.
This commit is contained in:
parent
c160482b0a
commit
74b416f985
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user