2010-11-14 17:47:30 -05:00
|
|
|
/*
|
|
|
|
* OCTest.mm
|
|
|
|
* OCTest
|
|
|
|
*
|
|
|
|
* Created by Phil on 13/11/2010.
|
|
|
|
* Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
|
|
|
|
*
|
2011-02-08 03:42:05 -05:00
|
|
|
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
*
|
2010-11-14 17:47:30 -05:00
|
|
|
*/
|
|
|
|
|
2011-04-26 03:32:40 -04:00
|
|
|
#import "catch.hpp"
|
2010-11-14 17:47:30 -05:00
|
|
|
|
|
|
|
#import "TestObj.h"
|
|
|
|
|
|
|
|
TEST_CASE( "OCTest/TestObj", "tests TestObj" )
|
|
|
|
{
|
|
|
|
TestObj* obj = [[TestObj alloc] init];
|
|
|
|
|
2010-12-27 17:37:51 -05:00
|
|
|
REQUIRE( obj.int_val == 0 );
|
2010-11-14 17:47:30 -05:00
|
|
|
|
|
|
|
obj.int_val = 1;
|
|
|
|
|
2010-12-27 17:37:51 -05:00
|
|
|
REQUIRE( obj.int_val == 1 );
|
2010-11-14 17:47:30 -05:00
|
|
|
|
|
|
|
[obj release];
|
|
|
|
}
|