[test] add spec for RM-518

This commit is contained in:
Watson
2014-06-27 09:31:27 +09:00
parent e0f09c546a
commit cd9cd42f5e
3 changed files with 15 additions and 0 deletions

View File

@@ -113,6 +113,14 @@ describe 'CFTypeRefs' do
end
end
describe "Typedef'ed argument" do
# RM-518
it "should be accepted" do
TestMethod.testTypedefArgument('foo').should == 'foo'
end
end
describe 'RUBY_ENGINE' do
it "should be 'rubymotion'" do
RUBY_ENGINE.should == 'rubymotion'

View File

@@ -79,6 +79,8 @@ typedef id (^MyBlock)(void);
+ (BOOL)isReturnValueRetained:(id)object forSelector:(SEL)sel;
typedef NSString RMString;
+ (id)testTypedefArgument:(RMString*)string;
@end
@interface TestIterator : NSObject <NSFastEnumeration>

View File

@@ -144,6 +144,11 @@
return [count intValue] == 1;
}
+ (id)testTypedefArgument:(RMString*)string
{
return string;
}
@end
@implementation TestIterator