Test clarification

Wouter van Heyst larstiq at larstiq.dyndns.org
Thu Dec 1 23:55:53 GMT 2005


On Thu, Dec 01, 2005 at 03:24:33PM -0800, Robey Pointer wrote:
<snip>
> >I tend to use (expected, actual). If we have a standard, it would be
> >nice to use that ;).
> 
> Probably because that's how all the other *unit libraries implement  
> it.  But to my surprise, python uses the parameters backwards:

<snip>
> The python ordering is the most "intuitive" to me, but I'm surprised  
> they reversed the order from cppunit & junit.  That's just going to  
> be a constant source of confusion.  Oh well. :)

The (expected, actual) ordering is how I prefer it in C, where I picked
up the habit of comparing int == value, which is safer than the other
way around when you forget an equals sign. 

Wouter van Heyst




More information about the bazaar mailing list