コード例 #1
0
ファイル: test_Expressions.py プロジェクト: atmnk/journeypy
def test_variable_expression_fill_with_int_without_type():
    context = Context()
    context.currentContext["name"] = 123
    var_e = VariableExpression("name")
    val = var_e.fill(context)
    assert type(val) == IntegerHolder
    assert val.value == 123
コード例 #2
0
ファイル: test_Expressions.py プロジェクト: atmnk/journeypy
def test_variable_expression_fill_with_str_without_type():
    context = Context()
    context.currentContext["name"] = "Atmaram"
    var_e = VariableExpression("name")
    val = var_e.fill(context)
    assert type(val) == StringHolder
    assert val.value == "Atmaram"