示例#1
0
def test_interpreter_instr_include_main_cola():
    assert binexec('interpreter_instr_include/main.cola') == 'hello\nworld'
示例#2
0
def test_empty_vbs():
    assert binexec('Empty.vbs') == 'Empty'
示例#3
0
def test_dictionary_exists_vbs():
    assert binexec('dictionary_exists.vbs') == '1\n0\n0'
示例#4
0
def test_array_loop_vbs():
    assert binexec('array_loop.vbs') == 'hello\nworld\nthis\nis\njohn'
示例#5
0
def test_string_loop_vbs():
    assert binexec('string_loop.vbs') == 'h\ne\nl\nl\no'
示例#6
0
def test_recursion_vbs():
    assert binexec('recursion.vbs') == '0\n1\n2\n3\n4\n4'
示例#7
0
def test_array_ubound_vbs():
    assert binexec('array_ubound.vbs') == '4'
示例#8
0
def test_dim_multiple_vbs():
    assert binexec('Dim_multiple.vbs') == '32\n0\n12\nhello\nworld\n3'
示例#9
0
def test_function_vbs():
    assert binexec('Function.vbs') == '16'
示例#10
0
def test_split_vbs():
    assert binexec('split.vbs') ==\
        '[\nhello\n,\nworld\n,\nthis\n,\nis\n,\nsplit\n,\n]' +\
        '\n[\nhello\n,\nworld\n,\n]'
示例#11
0
def test_extension_requests_vbs():
    assert '<html>' in binexec('extension_requests.vbs')
示例#12
0
def test_dim_one_vbs():
    assert binexec('Dim_one.vbs') == '32'
示例#13
0
def test_dictionary_removeall_vbs():
    assert binexec('dictionary_removeall.vbs') == '1\n1\n0\n0'
示例#14
0
def test_dictionary_items_vbs():
    assert binexec('dictionary_items.vbs') == '[\nJohn\n,\n123\n,\n]'
示例#15
0
def test_dictionary_vbs():
    assert binexec('dictionary.vbs') == '120\nhello'
示例#16
0
def test_loop_vbs():
    assert binexec('Loop.vbs') == '0\n1\n2\n3\n2\n1'
示例#17
0
def test_add_two_floats_vbs():
    assert binexec('add_two_floats.vbs') == '4.4'
示例#18
0
def test_boolean_expr_vbs():
    assert binexec('boolean_expr.vbs') == '0\n1\n1\n0\n1'
示例#19
0
def test_array_vbs():
    assert binexec('array.vbs') == 'hello\nme'
示例#20
0
def test_print_vbs():
    assert binexec('print.vbs') == 'hello'
示例#21
0
def test_wscript_echo_vbs():
    assert binexec('WScript.Echo.vbs') == 'hello'
示例#22
0
def test_if_vbs():
    assert binexec('If.vbs') == '2\n3\n4'
示例#23
0
def test_access_string_char_vbs():
    assert binexec('access_string_char.vbs') == 'e'
示例#24
0
def test_if_parentheses_on_left_vbs():
    assert binexec('If_parentheses_on_left.vbs') == 'yes'
示例#25
0
def test_dictionary_with_arrays_vbs():
    assert binexec('dictionary_with_arrays.vbs') == '16,8,21,28,42'
示例#26
0
def test_else_vbs():
    assert binexec('Else.vbs') == 'fruit'
示例#27
0
def test_isempty_vbs():
    assert binexec('isEmpty.vbs') == '1\n0'
示例#28
0
def test_concat_vbs():
    assert binexec('concat.vbs') == 'hello world\nhello world12\n57'
示例#29
0
def test_dictionary_keys_vbs():
    assert binexec('dictionary_keys.vbs') == '[\nname\n,\nx\n,\n]'
示例#30
0
def test_strsplit_cola():
    assert binexec('strsplit.cola') == 'john\ndoe\n21'