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)
def runtest(input, exp, **extra_env): with settings.push(Expr=Expr, Eval=Eval): return runevaltest(input, exp, **extra_env)
def runtest(input, exp, **extra_env): from tests.utils import runevaltest with settings.push(Expr=Expr, Eval=Eval): return runevaltest(input, exp, **extra_env)
def test_checked(input, expected): with settings.push(Expr=trylang.Expr, TypeOf=typed.TypeOf, Type=typed.Type, print_tree=False): utils.runtest(input, expected)
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)