ruby wrote:

>       assert_equal (false, true && false)
>       assert_equal (false, true) and false

Pickaxe does not list "," in the operator precedence table.

<snip from pickaxe>
&&
||
.. ...
? :
= etc
<<= etc
defined?
not
or and
</snip from pickaxe>

The only operator relating to "," here is "=".
Maybe it has to do with parallell assignment, as the comma is used 
there.

a, b = false, true

My workaround will be to use "&&"

Christer


-- 
Posted via http://www.ruby-forum.com/.