コード例 #1
0
def test_power_illegal_arg2():
    x = AutoDiff(2, "x")
    with pytest.raises(AttributeError):
        assert ef.pwer("thirty", x)
コード例 #2
0
def test_power_illegal_arg3():
    x = AutoDiff(-1, "x")
    with pytest.raises(AttributeError):
        assert ef.pwer(x, 2)
コード例 #3
0
def test_power_illegal_arg2():
    with pytest.raises(AttributeError):
        assert ef.pwer(2, "thirty")