mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
Merge branch 'AppleIIgs' of github.com:TomHarte/CLK into AppleIIgs
This commit is contained in:
@@ -20,19 +20,15 @@ class Krom65816Tests: XCTestCase {
|
|||||||
|
|
||||||
// MARK: - Test Runner
|
// MARK: - Test Runner
|
||||||
|
|
||||||
func runTest(_ name: String) {
|
func runTest(_ name: String, pcLimit: UInt32? = nil) {
|
||||||
runTest(name, pcLimit: nil)
|
|
||||||
}
|
|
||||||
|
|
||||||
func runTest(_ name: String, pcLimit: UInt32?) {
|
|
||||||
var testData: Data?
|
var testData: Data?
|
||||||
if let filename = Bundle(for: type(of: self)).path(forResource: name, ofType: "sfc") {
|
if let filename = Bundle(for: type(of: self)).url(forResource: name, withExtension: "sfc") {
|
||||||
testData = try? Data(contentsOf: URL(fileURLWithPath: filename))
|
testData = try? Data(contentsOf: filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
var testOutput: String?
|
var testOutput: String?
|
||||||
if let filename = Bundle(for: type(of: self)).path(forResource: name + "-trace_compare", ofType: "log") {
|
if let filename = Bundle(for: type(of: self)).url(forResource: name + "-trace_compare", withExtension: "log") {
|
||||||
testOutput = try? String(contentsOf: URL(fileURLWithPath: filename))
|
testOutput = try? String(contentsOf: filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
XCTAssertNotNil(testData)
|
XCTAssertNotNil(testData)
|
||||||
|
Reference in New Issue
Block a user