Fixes non-working tests. It's possible that newer versions of Xcode have broken these tests. The fixes in this commit work with Xcode 13.4.1 and 14.2 where I received multiple errors, resulting in test not being able to pass.
fixing error: Constant 'clock' inferred to have type '()', which may be unexpected. This is caused by the single lines that have an instantiation and method call on the same line. So let clock = Clock(hours:5, minutes:5).add(minutes:5) result in having the object not assigned to clock. Splitting the method call onto another line fixes this
fixing issue with XCTestEqual(clock1, clock2) and XCTestNotEqual(clock1, clock2) not comparing the descriptions of the objects, so by adding the description method explicitly this fixes false passes and fails for this XCTAssert statement
<img width="703" alt="clock test error 01" src="https://github.com/exercism/sw
Fixes non-working tests. It's possible that newer versions of Xcode have broken these tests. The fixes in this commit work with Xcode 13.4.1 and 14.2 where I received multiple errors, resulting in test not being able to pass.
ift/assets/2664646/91151bcd-18cb-47b5-ac79-3d354cf65cfd">