Re: unit testing bsd C library
Re: unit testing bsd C library
- Subject: Re: unit testing bsd C library
- From: Philip Grandinetti <email@hidden>
- Date: Sat, 19 Sep 2009 16:07:26 -0400
Thanks Philippe. That makes sense. I was confused since the Apple
Reference...
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/UnitTesting/Articles/CreatingTests.html#//apple_ref/doc/uid/TP40002171
states...
"If you are writing a C/C++ program, select the Carbon > Unit Test
Bundle target. You do not have to use the Carbon libraries to use this
target."
Why do you think they grouped C in with C++, instead of including it
with Objective C?
Thanks again,
Philip
On Sep 19, 2009, at 4:02 PM, Philippe Casgrain wrote:
Le 2009-09-19 à 15:57, Philip Grandinetti a écrit :
I'm writing a BSD C library in Xcode 3.2 and I would like to write
unit tests for my library functions. In Xcode 3.2 there is a
template for setting up Objective C unit tests, but I can't find
anything for setting up unit tests for a C library. Does anyone
have any suggestions?
Your Obj-C Unit Test bundle can simply link against your C library,
and contain all the tests. Obj-C is perfectly happy to call straight
C.
Philippe
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden