Created
August 26, 2009 04:13
-
-
Save wezm/175306 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
@implementation MyClass : CPObject | |
{ | |
} | |
- (CPString)helloWorld | |
{ | |
return @"Hello World" | |
} | |
@end |
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
@import "MyClass.j" | |
@implementation MyClassTest : OJTestCase | |
- (CPString)testHelloWorld | |
{ | |
var obj = [[MyClass alloc] init]; | |
[self assertTrue:(@"Hello World" === [obj helloWorld])]; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment