Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between XCTAssert and XCTAssertTrue?

What's the difference between XCTAssert and XCTAssertTrue? They seem to be doing the same thing, if so why do we need both?

like image 607
Boon Avatar asked May 29 '14 23:05

Boon


1 Answers

You are correct to suggest that there is redundancy here. They are in fact absolutely identical - that is, under the hood they both evaluate to one and the same macro, _XCTPrimitiveAssertTrue.

like image 127
matt Avatar answered Sep 18 '22 05:09

matt