test/arithmetic_test.rb in measured-2.0.0.pre1 vs test/arithmetic_test.rb in measured-2.0.0.pre2

- old
+ new

@@ -77,12 +77,13 @@ end test "arithmetic operations favours unit of left" do left = Magic.new(1, :arcane) right = Magic.new(1, :magic_missile) + arcane = Magic.unit_system.unit_for!(:arcane) - assert_equal "arcane", (left + right).unit - assert_equal "arcane", (left - right).unit + assert_equal arcane, (left + right).unit + assert_equal arcane, (left - right).unit end test "#coerce should return other as-is when same class" do assert_equal [@two, @three], @three.coerce(@two) end