Skip to content

Instantly share code, notes, and snippets.

@wezm
Created August 26, 2009 04:13
Show Gist options
  • Save wezm/175306 to your computer and use it in GitHub Desktop.
Save wezm/175306 to your computer and use it in GitHub Desktop.
@implementation MyClass : CPObject
{
}
- (CPString)helloWorld
{
return @"Hello World"
}
@end
@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