Re: [Cppunit-devel] Change done...
Brought to you by:
blep
|
From: Baptiste L. <bl...@cl...> - 2001-06-12 07:03:18
|
----- Original Message -----
From: "Steve M. Robbins" <ste...@vi...>
To: <cpp...@li...>
Sent: Tuesday, June 12, 2001 2:29 AM
Subject: Re: [Cppunit-devel] Change done...
> On Mon, Jun 11, 2001 at 03:50:26PM -0700, Townsend, Guy wrote:
> > That "operator !()" in OrthodoxTest test has always bothered me. It's
okay
> > for a very few classes, but just doesn't apply for most of the classes I
> > write. Which makes OrthodoxTest not very useful. Parts of it are good,
but
> > the negation of most classes doesn't seem to make sense. Perhaps that
part
> > should be at least #ifdef'd out unless one really wants to use it for an
> > appropriate class?
>
> Another random thought: rather than "orthodox", perhaps it makes more
> sense to template unit tests for STL concepts like Assignable,
> EqualityComparable, DefaultConstructible, and whatnot.
Yes that would make a lot of sense (look at the TODO file ;-) ).
The current Orthodox test is not very usable because you need to look up
the code to know which assertion failed. It would be better if we had more
fine grained test which name would make sense. We could then compose those
test for common "concept".
Is there a place where those STL concepts can be look up (my knowledge
is empirical)?
Baptiste.
---
Baptiste Lepilleur <gai...@fr...> http://gaiacrtn.free.fr/index.html
Author of The Text Reformatter, a tool for fanfiction readers and writers.
Language: English, French (Well, I'm French).
|