sorear/niecza

`infix:<eqv>` doesn't compare arrays right

Closed this issue · 0 comments

<TimToady> niecza: say [1, 0.70710678118654746] eqv [0.85355339059327373, 0.8408964152537145]
<p6eval> niecza v15-2-gd19c478: OUTPUT«True␤»
<TimToady> sorear ^^^
<sorear> What are the last two numbers?
<TimToady> the 2nd iteration from http://rosettacode.org/wiki/Arithmetic-geometric_mean#Perl_6
<TimToady> which doesn't work if I change the all >>==<< to an eqv
<TimToady> niecza: say [1, 0.70710678118654746] eqv [0.85355339059327373, 0.8408964152537145, 42]
<p6eval> niecza v15-2-gd19c478: OUTPUT«False␤»
<TimToady> I suspect niecza is comparing lengths rather than values of the arrays
* masak submits nieczaissue