def test_max_value_should_reject_comparison_with_wads(self): with pytest.raises(ArithmeticError): Ray.max(Ray(10), Wad(20)) with pytest.raises(ArithmeticError): Ray.max(Ray(25), Wad(15))
def test_max_value(self): assert Ray.max(Ray(10), Ray(20)) == Ray(20) assert Ray.max(Ray(25), Ray(15)) == Ray(25) assert Ray.max(Ray(25), Ray(15), Ray(40)) == Ray(40)