# lab10test.py
# Lillian Lee (LJL2) and Steve Marschner (SRM2)
# April 6, 2014

"""A few non-exhaustive testcases for lab10 functions"""


import lab10
import cornelltest



def test_isprime():
    """Test isprime"""

    print ' begin test of isprime'
    primes = [2, 3, 5, 7, 11, 13, 17, 307, 971, 1709]
    composites = [1, 4, 6, 8, 9, 49, 51, 81, 95]
    for p in primes:
        cornelltest.assert_true(lab10.isprime(p))
    for c in composites:
        cornelltest.assert_false(lab10.isprime(c))

    print ' finished testing isprime'

if __name__ == '__main__':
    test_isprime()
    # no test cases given in skeleton for test_exp_pair
    print "All test cases (such as they are) for lab10 passed"