Exemple #1
0
def runtest(input, exp, **extra_env):
    from tests.utils import runevaltest
    with settings.push(Expr=Expr, Eval=Eval):
        from tests import externs
        from epl.env import DefaultEnv as Env
        starting_env = Env().set(**externs.contenv())
        return runevaltest(input, exp, starting_env, **extra_env)
Exemple #2
0
def runtest(input, exp, **extra_env):
    with settings.push(Expr=Expr, Eval=Eval):
        return runevaltest(input, exp, **extra_env)
Exemple #3
0
def runtest(input, exp, **extra_env):
    from tests.utils import runevaltest
    with settings.push(Expr=Expr, Eval=Eval):
        return runevaltest(input, exp, **extra_env)
Exemple #4
0
def test_checked(input, expected):
    with settings.push(Expr=trylang.Expr,
                       TypeOf=typed.TypeOf,
                       Type=typed.Type,
                       print_tree=False):
        utils.runtest(input, expected)
Exemple #5
0
def runtest(input, exp, starting_env=None, **extra_env):
    with settings.push(Expr=trylang.Expr, TypeOf=typed.TypeOf,
                       Type=typed.Type):
        utils.runtest(input, exp, starting_env, **extra_env)