Example #1
0
def test_is_square():
    assert [i for i in range(25) if is_square(i)] == [0, 1, 4, 9, 16]
    assert is_square(4, prep=False) is True
    assert is_square(193) is False
    # issue sympy/sympy#17044
    assert is_square(216000) is False
    assert is_square(216000 / 15) is True
Example #2
0
def test_is_square():
    assert [i for i in range(25) if is_square(i)] == [0, 1, 4, 9, 16]
    assert is_square(4, prep=False) is True
    assert is_square(193) is False
Example #3
0
def test_is_square():
    assert [i for i in range(25) if is_square(i)] == [0, 1, 4, 9, 16]
    assert is_square(4, prep=False) is True
    assert is_square(193) is False