1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-08-20 13:29:27 +00:00

Merge pull request #845 from MaddTheSane/patch-1

Update 65816kromTests.swift
This commit is contained in:
Thomas Harte 2020-11-06 09:38:59 -05:00 committed by GitHub
commit 5149e4364a
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))