tracks/swift/exercises/grains/Tests/GrainsTests/GrainsTests.swift in trackler-2.2.1.60 vs tracks/swift/exercises/grains/Tests/GrainsTests/GrainsTests.swift in trackler-2.2.1.61

- old
+ new

@@ -6,30 +6,30 @@ func testInvalidInput1() { XCTAssertThrowsError(try Grains.square(65)) { error in if case let Grains.GrainsError.inputTooHigh(message) = error { XCTAssertTrue(message == "Input[65] invalid. Input should be between 1 and 64 (inclusive)") } else { - XCTFail() + XCTFail("Expected error not thrown") } } } func testInvalidInput2() { XCTAssertThrowsError(try Grains.square(0)) { error in if case let Grains.GrainsError.inputTooLow(message) = error { XCTAssertTrue(message == "Input[0] invalid. Input should be between 1 and 64 (inclusive)") } else { - XCTFail() + XCTFail("Expected error not thrown") } } } func testInvalidInput3() { XCTAssertThrowsError(try Grains.square(-1)) { error in if case let Grains.GrainsError.inputTooLow(message) = error { XCTAssertTrue(message == "Input[-1] invalid. Input should be between 1 and 64 (inclusive)") } else { - XCTFail() + XCTFail("Expected error not thrown") } } } func testSquare1() {