def test_integer_power():
    from pymbolic.algorithm import integer_power
    for (base, expn) in [(17, 5), (17, (2 ** 10)), (13, 20), (13, 1343)]:
        assert ((base ** expn) == integer_power(base, expn))
def test_integer_power():
    from pymbolic.algorithm import integer_power
    for (base, expn) in [(17, 5), (17, (2 ** 10)), (13, 20), (13, 1343)]:
        assert ((base ** expn) == integer_power(base, expn))