Fixed OCTest project to use new REQUIRE macro

This commit is contained in:
Phil Nash 2010-12-27 22:37:51 +00:00
parent 034c8b6248
commit 01f3dfffbc
3 changed files with 7 additions and 6 deletions

View File

@ -24,20 +24,20 @@
OC_TEST_CASE( "OCTest/test1", "This is a test case" ) OC_TEST_CASE( "OCTest/test1", "This is a test case" )
{ {
EXPECT( obj.int_val == 0 ); REQUIRE( obj.int_val == 0 );
obj.int_val = 1; obj.int_val = 1;
EXPECT( obj.int_val == 1 ); REQUIRE( obj.int_val == 1 );
} }
OC_TEST_CASE( "OCTest/test2", "This is another test case" ) OC_TEST_CASE( "OCTest/test2", "This is another test case" )
{ {
EXPECT( obj.int_val == 0 ); REQUIRE( obj.int_val == 0 );
obj.int_val = 2; obj.int_val = 2;
EXPECT( obj.int_val == 2 ); REQUIRE( obj.int_val == 2 );
} }
@end @end

View File

@ -15,11 +15,11 @@ TEST_CASE( "OCTest/TestObj", "tests TestObj" )
{ {
TestObj* obj = [[TestObj alloc] init]; TestObj* obj = [[TestObj alloc] init];
EXPECT( obj.int_val == 0 ); REQUIRE( obj.int_val == 0 );
obj.int_val = 1; obj.int_val = 1;
EXPECT( obj.int_val == 1 ); REQUIRE( obj.int_val == 1 );
[obj release]; [obj release];
} }

View File

@ -190,6 +190,7 @@
ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
GCC_C_LANGUAGE_STANDARD = gnu99; GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_OPTIMIZATION_LEVEL = 0; GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = DEBUG;
GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES; GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES; ONLY_ACTIVE_ARCH = YES;