Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPlusTest in Xcode 2.3




On May 23, 2006, at 9:06 PM, Chris Hanson wrote:

In your TestCase subclasses, are you overriding setUp() and tearDown () to handle creating and destroying the state of your tests? Or are you doing it in the constructor and destructor of your test case subclasses?

No, there is no state created, the constructor and destructor are completely empty. The test method is a single line:


void UT_superadd::Test(void)
{
	CPTAssert(superadd(1,1) == 1 + 1);
}

This is just supposed to be a little tiny example to be used in a tutorial, so there isn't anything fancy going on with memory or resources.

If the above doesn't clear up your issue, please file a bug at <http://bugreport.apple.com/>.

I'll try to do that tonight.

Thanks,
Aaron
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Re: CPlusTest in Xcode 2.3 (From: Aaron Montgomery <email@hidden>)
 >Re: CPlusTest in Xcode 2.3 (From: Chris Hanson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.