aboutsummaryrefslogtreecommitdiff
path: root/projects/XCode/OCTest/OCTest/OCTest.mm
diff options
context:
space:
mode:
Diffstat (limited to 'projects/XCode/OCTest/OCTest/OCTest.mm')
-rw-r--r--projects/XCode/OCTest/OCTest/OCTest.mm28
1 files changed, 28 insertions, 0 deletions
diff --git a/projects/XCode/OCTest/OCTest/OCTest.mm b/projects/XCode/OCTest/OCTest/OCTest.mm
new file mode 100644
index 0000000..bfb2ca2
--- /dev/null
+++ b/projects/XCode/OCTest/OCTest/OCTest.mm
@@ -0,0 +1,28 @@
+/*
+ * OCTest.mm
+ * OCTest
+ *
+ * Created by Phil on 13/11/2010.
+ * Copyright 2010 Two Blue Cubes Ltd. All rights reserved.
+ *
+ * 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)
+ *
+ */
+
+#import "catch.hpp"
+
+#import "TestObj.h"
+
+TEST_CASE( "OCTest/TestObj", "tests TestObj" )
+{
+ TestObj* obj = [[TestObj alloc] init];
+
+ REQUIRE( obj.int_val == 0 );
+
+ obj.int_val = 1;
+
+ REQUIRE( obj.int_val == 1 );
+
+ arcSafeRelease( obj );
+}