def test_xmax(): assert 0 == xmax('abcd') assert 3 == xmax((2, None, 'x', 3)) assert -0.1 == xmax((-0.1, None, 'x', True)) assert VALUE_ERROR == xmax(VALUE_ERROR) assert VALUE_ERROR == xmax((2, VALUE_ERROR)) assert DIV0 == xmax(DIV0) assert DIV0 == xmax((2, DIV0))
def test_xmax(): assert 0 == xmax('abcd') assert 3 == xmax((2, None, 'x', 3)) assert -0.1 == xmax((-0.1, None, 'x', True)) assert VALUE_ERROR == xmax(VALUE_ERROR) assert VALUE_ERROR == xmax((2, VALUE_ERROR)) assert DIV0 == xmax(DIV0) assert DIV0 == xmax((2, DIV0))