Created
November 14, 2011 19:27
-
-
Save dsci/1364868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) testNSStringFromChar | |
{ | |
char * charCity = "Leipzig"; | |
NSString *city = @"Leipzig"; | |
NSString *cityFromChar = [NSString stringWithUTF8String:charCity]; | |
STAssertEqualObjects(city,cityFromChar, @"cityfrom Char should be the same as city from NSString"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment