It works though! And if you do
if (2^3 != 1)
puts("two cubed is not one");
if (5^2 != 7)
puts("five squared is not seven");
it prints those messages too.The trick is operator precedence.