1
0
mirror of https://github.com/TomHarte/CLK.git synced 2025-02-27 15:29:34 +00:00

Update 65816kromTests.swift

Only have one runTest method.
This commit is contained in:
C.W. Betts 2020-11-05 14:36:34 -07:00 committed by GitHub
parent 5126163c5d
commit a3414c2673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,11 +20,7 @@ class Krom65816Tests: XCTestCase {
// MARK: - Test Runner
func runTest(_ name: String) {
runTest(name, pcLimit: nil)
}
func runTest(_ name: String, pcLimit: UInt32?) {
func runTest(_ name: String, pcLimit: UInt32? = nil) {
var testData: Data?
if let filename = Bundle(for: type(of: self)).path(forResource: name, ofType: "sfc") {
testData = try? Data(contentsOf: URL(fileURLWithPath: filename))