def testTooManyArgs():
    ripl = get_ripl()
    assert_ripl_annotation_succeeds(ripl.predict, '(- 1 1 1)')
def testExceptionAnnotated():
    ripl = get_ripl()
    assert_ripl_annotation_succeeds(ripl.predict, 'a')
def testTooFewArgs():
    ripl = get_ripl()
    assert_ripl_annotation_succeeds(ripl.predict, '(-)')
def testLargeStack():
    ripl = get_ripl()
    ripl.assume('f', '(lambda (i) (if (= i 0) a (f (- i 1))))')
    assert_ripl_annotation_succeeds(ripl.predict, '(f 20)')
def testLambda():
    ripl = get_ripl()
    ripl.assume('err', '(lambda () a)')
    assert_ripl_annotation_succeeds(ripl.predict, '(err)')
def testNoSPRef():
    ripl = get_ripl()
    assert_ripl_annotation_succeeds(ripl.predict, '(1 + 1)')
def testSymbolNotFound():
    ripl = get_ripl()
    assert_ripl_annotation_succeeds(ripl.predict, 'a')