Complete the code to check if two values are equal using XCTAssertEqual.
XCTAssertEqual([1], 5)
Use XCTAssertEqual to compare the variable result with the expected value 5.
Complete the code to assert that a condition is true using XCTAssertTrue.
XCTAssertTrue([1])XCTAssertTrue expects a condition that evaluates to true. Here, we check if result equals 10.
Fix the error in the assertion to correctly check if two strings are equal.
XCTAssertEqual([1], "Hello")
Pass the variable greeting directly to XCTAssertEqual to compare it with the string "Hello".
Fill both blanks to assert that the count of items is greater than zero.
XCTAssertTrue([1] [2] 0)
We check if items.count is greater than zero using XCTAssertTrue.
Fill all three blanks to assert that the uppercase version of a string equals "WORLD".
XCTAssertEqual([1].[2](), "[3]")
lowercased() instead of uppercased().We call uppercased() on the variable word and check if it equals "WORLD" using XCTAssertEqual.