[rfc][patch]

Robey Pointer robey at lag.net
Mon Jan 2 23:28:36 GMT 2006


On 2 Jan 2006, at 7:09, John Arbash Meinel wrote:

>
> If we are being picky, you tests do:
> self.assertEquals(a.revno(), 4)
>
> I think we decided the prefered way is
> self.assertEquals(4, a.revno())
>
> I agree that the former feels a little bit more natural. But when
> reviewing errors, it is easier to read the correct value first. And it
> is nice if we standardize, so that when reading test failures, it is
> easier to see what is wrong.

Sadly, it turned out that python reverses the argument order from c++/ 
java, so the first version (actual, expected) is correct.  (Sigh.) :(

http://article.gmane.org/gmane.comp.version-control.bazaar-ng.general/ 
5563

robey





More information about the bazaar mailing list