@@ -22,11 +22,11 @@ @interface TestThread: OFThread @end @implementation TestThread -- main +- (id)run { if ([object isEqual: @"foo"]) return @"success"; return nil; @@ -40,10 +40,12 @@ TestThread *t; OFTLSKey *key; TEST(@"+[threadWithObject:]", (t = [TestThread threadWithObject: @"foo"])) + + TEST(@"-[run]", [t start]) TEST(@"-[join]", [[t join] isEqual: @"success"]) TEST(@"OFTLSKey's +[tlsKey]", (key = [OFTLSKey tlsKey]))