mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +00:00
Adjusted slightly to adapt to latest Swift warnings.
This commit is contained in:
parent
1378ab7278
commit
64d6ee1be5
@ -7,7 +7,6 @@
|
||||
//
|
||||
|
||||
import XCTest
|
||||
@testable import Clock_Signal
|
||||
|
||||
class AllSuiteATests: XCTestCase {
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Use this file to import your target's public headers that you would like to expose to Swift.
|
||||
//
|
||||
|
||||
#import "ClockSignal-Bridging-Header.h"
|
||||
|
||||
#import "TestMachine6502.h"
|
||||
#import "TestMachineZ80.h"
|
||||
#import "MOS6522Bridge.h"
|
||||
|
@ -37,16 +37,16 @@ class KlausDormannTests: XCTestCase {
|
||||
let machine = CSTestMachine6502()
|
||||
|
||||
machine.setData(functionalTest, atAddress: 0)
|
||||
machine.setValue(0x400, for: CSTestMachine6502Register.programCounter)
|
||||
machine.setValue(0x400, for: .programCounter)
|
||||
|
||||
while true {
|
||||
let oldPC = machine.value(for: CSTestMachine6502Register.lastOperationAddress)
|
||||
let oldPC = machine.value(for: .lastOperationAddress)
|
||||
machine.runForNumber(ofCycles: 1000)
|
||||
let newPC = machine.value(for: CSTestMachine6502Register.lastOperationAddress)
|
||||
let newPC = machine.value(for: .lastOperationAddress)
|
||||
|
||||
if newPC == oldPC {
|
||||
let error = errorForTrapAddress(oldPC)
|
||||
XCTAssert(error == nil, "Failed with error \(error)")
|
||||
XCTAssert(error == nil, "Failed with error \(error!)")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user