mirror of
https://github.com/TomHarte/CLK.git
synced 2024-11-26 23:52:26 +00:00
This should be enough of a shell to write some actual tests.
This commit is contained in:
parent
865eb421cd
commit
da6fe2e983
@ -10,4 +10,22 @@ import XCTest
|
||||
|
||||
class C1540Tests: XCTestCase {
|
||||
|
||||
private func with1540(action: (C1540Bridge) -> ()) {
|
||||
let bridge = C1540Bridge()
|
||||
|
||||
if let path = NSBundle.mainBundle().pathForResource("1541", ofType: "bin", inDirectory: "ROMImages/Commodore1540") {
|
||||
let data = NSData(contentsOfFile: path)
|
||||
bridge.setROM(data)
|
||||
}
|
||||
|
||||
action(bridge)
|
||||
}
|
||||
|
||||
// MARK: EOI
|
||||
|
||||
func testEOI() {
|
||||
with1540 {
|
||||
$0.runForCycles(20)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user