2011-02-22 14:53:39 +00:00
|
|
|
#import "Testing.h"
|
2011-02-07 20:41:58 +00:00
|
|
|
|
|
|
|
/* A second test ... your first go at testing with ObjectiveC
|
|
|
|
*
|
|
|
|
* If you run the test with 'gnustep-tests example2.m' it should
|
2011-02-16 05:44:45 +00:00
|
|
|
* report two test passes.
|
2011-02-07 20:41:58 +00:00
|
|
|
*/
|
|
|
|
int
|
|
|
|
main()
|
|
|
|
{
|
|
|
|
/* We start a set here ...
|
|
|
|
* Having a set means we do not need to bother creating an autorelease pool.
|
|
|
|
*/
|
2011-02-24 16:26:01 +00:00
|
|
|
START_SET("example set")
|
2011-02-07 20:41:58 +00:00
|
|
|
|
|
|
|
pass(1 == 1, "integer equality works");
|
|
|
|
pass([[NSObject new] autorelease] != nil, "+new creates an object");
|
|
|
|
|
|
|
|
END_SET("example set")
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|