From 4b347b9993c0516c657ce4b530ae3d8db593cb7d Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Sun, 30 Oct 2016 20:30:32 -0400 Subject: [PATCH] Made a trivial `XCTAssert` unit test substitution. --- OSBindings/Mac/Clock SignalTests/AllSuiteATests.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OSBindings/Mac/Clock SignalTests/AllSuiteATests.swift b/OSBindings/Mac/Clock SignalTests/AllSuiteATests.swift index 46e56546a..684641121 100644 --- a/OSBindings/Mac/Clock SignalTests/AllSuiteATests.swift +++ b/OSBindings/Mac/Clock SignalTests/AllSuiteATests.swift @@ -24,9 +24,7 @@ class AllSuiteATests: XCTestCase { machine.runForNumber(ofCycles: 1000) } - if machine.value(forAddress: 0x0210) != 0xff { - NSException(name: NSExceptionName(rawValue: "Failed AllSuiteA"), reason: "Failed test \(machine.value(forAddress: 0x0210))", userInfo: nil).raise() - } + XCTAssert(machine.value(forAddress: 0x0210) == 0xff, "Failed test \(machine.value(forAddress: 0x0210))") } } }