Tweak "line" test to avoid negative zeros on some platforms