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

Stops truncating tests by two bytes.

Not that it seems to have been problematic.
This commit is contained in:
Thomas Harte 2020-10-12 21:53:27 -04:00
parent 7479dc74ed
commit 6a47571d17

View File

@ -292,7 +292,7 @@ class WolfgangLorenzTests: XCTestCase, CSTestMachineTrapHandler {
let dataPointer = (testData as NSData).bytes.bindMemory(to: UInt8.self, capacity: testData.count)
let loadAddress = UInt16(dataPointer[0]) | (UInt16(dataPointer[1]) << 8)
let contents = testData.subdata(in: 2..<(testData.count - 2))
let contents = testData.subdata(in: 2 ..< testData.count)
machine.setData(contents, atAddress: loadAddress)