From a3dafa90565c5f4684810b1c1206f134e4b70622 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 17 May 2017 21:44:08 -0400 Subject: [PATCH] Abbreviated uses of enumerations. --- OSBindings/Mac/Clock SignalTests/BCDTest.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/BCDTest.swift b/OSBindings/Mac/Clock SignalTests/BCDTest.swift index 26b215676..619bb3e0a 100644 --- a/OSBindings/Mac/Clock SignalTests/BCDTest.swift +++ b/OSBindings/Mac/Clock SignalTests/BCDTest.swift @@ -27,7 +27,7 @@ class BCDTest: XCTestCase, CSTestMachine6502JamHandler { machine.setValue(0x03, forAddress:0x204) machine.setValue(0x02, forAddress:0x205) - machine.setValue(0x200, for: CSTestMachine6502Register.programCounter) + machine.setValue(0x200, for: .programCounter) machine.setValue(CSTestMachine6502JamOpcode, forAddress:0xffee) // OSWRCH machine.setValue(CSTestMachine6502JamOpcode, forAddress:0xffff) // end of test @@ -45,7 +45,7 @@ class BCDTest: XCTestCase, CSTestMachine6502JamHandler { switch address { case 0xffee: - let character = machine.value(for: CSTestMachine6502Register.A) + let character = machine.value(for: .A) output.append(Character(UnicodeScalar(character)!)) machine.returnFromSubroutine()