mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 03:43:28 +01:00
Fixed OCTest project to use new REQUIRE macro
This commit is contained in:
parent
034c8b6248
commit
01f3dfffbc
@ -24,20 +24,20 @@
|
||||
|
||||
OC_TEST_CASE( "OCTest/test1", "This is a test case" )
|
||||
{
|
||||
EXPECT( obj.int_val == 0 );
|
||||
REQUIRE( obj.int_val == 0 );
|
||||
|
||||
obj.int_val = 1;
|
||||
|
||||
EXPECT( obj.int_val == 1 );
|
||||
REQUIRE( obj.int_val == 1 );
|
||||
}
|
||||
|
||||
OC_TEST_CASE( "OCTest/test2", "This is another test case" )
|
||||
{
|
||||
EXPECT( obj.int_val == 0 );
|
||||
REQUIRE( obj.int_val == 0 );
|
||||
|
||||
obj.int_val = 2;
|
||||
|
||||
EXPECT( obj.int_val == 2 );
|
||||
REQUIRE( obj.int_val == 2 );
|
||||
}
|
||||
|
||||
@end
|
||||
|
@ -15,11 +15,11 @@ TEST_CASE( "OCTest/TestObj", "tests TestObj" )
|
||||
{
|
||||
TestObj* obj = [[TestObj alloc] init];
|
||||
|
||||
EXPECT( obj.int_val == 0 );
|
||||
REQUIRE( obj.int_val == 0 );
|
||||
|
||||
obj.int_val = 1;
|
||||
|
||||
EXPECT( obj.int_val == 1 );
|
||||
REQUIRE( obj.int_val == 1 );
|
||||
|
||||
[obj release];
|
||||
}
|
||||
|
@ -190,6 +190,7 @@
|
||||
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
|
||||
GCC_C_LANGUAGE_STANDARD = gnu99;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
ONLY_ACTIVE_ARCH = YES;
|
||||
|
Loading…
Reference in New Issue
Block a user