On May 4, 2006, at 10:19 PM, Victor Shepelev wrote:

> Hi all.
>
> I've found myself to always writing:
>
> assert_equal variable_to_test, 'value expected'
>
> And Test::Unit says to me:
> 'some wrong value' expected but was 'value expected'
>
> when I'd want to see
>
> 'value expected' expected but was 'some wrong value'
>
> Is it because English is not my native? I mean, all others think  
> that order
>
> assert equal <what I test>, <what I expect>
>
> is natural?

expected always comes first for all the assertions.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com