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