1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-23 03:32:32 +00:00

This should be enough of a shell to write some actual tests.

This commit is contained in:
Thomas Harte 2016-07-09 15:47:53 -04:00
parent 865eb421cd
commit da6fe2e983

View File

@ -10,4 +10,22 @@ import XCTest
class C1540Tests: XCTestCase { 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)
}
}
} }