@@ -28,14 +28,11 @@ @end @implementation TestThread - (id)main { - if ([object isEqual: @"foo"]) - return @"success"; - - return nil; + return @"success"; } @end @implementation TestsAppDelegate (OFThreadTests) - (void)threadTests @@ -42,12 +39,11 @@ { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; TestThread *t; OFTLSKey *key; - TEST(@"+[threadWithObject:]", - (t = [TestThread threadWithObject: @"foo"])) + TEST(@"+[thread]", (t = [TestThread thread])) TEST(@"-[start]", R([t start])) TEST(@"-[join]", [[t join] isEqual: @"success"])