Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Seriot committed Feb 5, 2013
1 parent 72b71db commit 7fd60b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion model/ClassDisplay.m
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ - (NSArray *)methodLinesWithSign:(char)sign {
while (isdigit (*++ivT));
currentWarning = NO;
cTypeDeclInfo = [self flatCTypeDeclForEncType];
[header appendFormat:@"%@:(%@%@)arg%d%s",
[header appendFormat:@"%@:(%@%@)arg%lu%s",
[mNameParts objectAtIndex:i-1],
[cTypeDeclInfo objectForKey:TYPE_LABEL],
[cTypeDeclInfo objectForKey:MODIFIER_LABEL],
Expand Down
5 changes: 4 additions & 1 deletion runtime_cli/UnitTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#import "ClassDisplay.h"

// TODO: add properties types tests from http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtPropertyIntrospection.html
// TODO: add tests form http://nshipster.com/type-encodings/

@implementation UnitTests

Expand Down Expand Up @@ -84,6 +83,10 @@ - (void)testBasicTypes {
}

- (void)testComplicatedTypes {
STAssertEqualObjects([self decodeFlatCType:"^f"], @"float*", @"");
STAssertEqualObjects([self decodeFlatCType:"^v"], @"void*", @"");
STAssertEqualObjects([self decodeFlatCType:"^@"], @"id*", @"");

STAssertEqualObjects([self decodeIvarType:"[10i]"], @"int ", @"");
STAssertEqualObjects([self decodeIvarModifier:"[10i]"], @"[10]", @"");

Expand Down

0 comments on commit 7fd60b2

Please sign in to comment.