From: Brian H. <bh...@sp...> - 2003-06-04 19:12:08
|
On Wed, 4 Jun 2003, Mikhail Fedotov wrote: > Hi! > > > > My preference would be to be able to compile the > > > library *without* the unit testing code in it. > > > This will require some thought, and probably > > > some makefile hacking. > > > > Why Brian ? > > I mean, having a big ExtLib.cma is not a problem, since > > we're using different modules, > > Unit testing code is usually implemented as a seperate > program which uses the library, not as part of the library. > This actually limits the ability of the unit testing to nail down what just broke. For example, the PSQueue module has internal functions "rotate_right" and "rotate_left". I'd like the unit tests to test those functions independently- and balance as seperate from rotate. Allowing me to tell if I broke insert, balance, or a rotate. My inclination is to agree with Nicolas and just toss the test functions into the library and worry about size when it becomes a problem. Brian |