mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-05 23:05:39 +02:00
Renamed XCode4 folder to just XCode
(It’s been Xcode 5 for a long time, now, anyway)
This commit is contained in:
27
projects/XCode/iOSTest/iOSTest/OCTest.mm
Normal file
27
projects/XCode/iOSTest/iOSTest/OCTest.mm
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* 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)
|
||||
*
|
||||
*/
|
||||
#include "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 );
|
||||
}
|
25
projects/XCode/iOSTest/iOSTest/TestObj.h
Normal file
25
projects/XCode/iOSTest/iOSTest/TestObj.h
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// TestObj.h
|
||||
// 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)
|
||||
#ifndef TWOBLUECUBES_TESTOBJ_H_INCLUDED
|
||||
#define TWOBLUECUBES_TESTOBJ_H_INCLUDED
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
||||
@interface TestObj : NSObject {
|
||||
|
||||
int int_val;
|
||||
}
|
||||
|
||||
@property (nonatomic, assign ) int int_val;
|
||||
|
||||
@end
|
||||
|
||||
#endif // TWOBLUECUBES_TESTOBJ_H_INCLUDED
|
18
projects/XCode/iOSTest/iOSTest/TestObj.m
Normal file
18
projects/XCode/iOSTest/iOSTest/TestObj.m
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// TestObj.m
|
||||
// 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 "TestObj.h"
|
||||
|
||||
|
||||
@implementation TestObj
|
||||
|
||||
@synthesize int_val;
|
||||
|
||||
@end
|
@@ -0,0 +1,2 @@
|
||||
/* Localized versions of Info.plist keys */
|
||||
|
47
projects/XCode/iOSTest/iOSTest/iOSTest-Info.plist
Normal file
47
projects/XCode/iOSTest/iOSTest/iOSTest-Info.plist
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>${EXECUTABLE_NAME}</string>
|
||||
<key>CFBundleIconFiles</key>
|
||||
<array/>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>twobluecubes.${PRODUCT_NAME:rfc1034identifier}</string>
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleName</key>
|
||||
<string>${PRODUCT_NAME}</string>
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>1.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.0</string>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
<true/>
|
||||
<key>UIRequiredDeviceCapabilities</key>
|
||||
<array>
|
||||
<string>armv7</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
||||
<array>
|
||||
<string>UIInterfaceOrientationPortrait</string>
|
||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
14
projects/XCode/iOSTest/iOSTest/iOSTest-Prefix.pch
Normal file
14
projects/XCode/iOSTest/iOSTest/iOSTest-Prefix.pch
Normal file
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// Prefix header for all source files of the 'iOSTest' target in the 'iOSTest' project
|
||||
//
|
||||
|
||||
#import <Availability.h>
|
||||
|
||||
#ifndef __IPHONE_3_0
|
||||
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
||||
#endif
|
||||
|
||||
#ifdef __OBJC__
|
||||
#import <UIKit/UIKit.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
#endif
|
Reference in New Issue
Block a user