def test_for_loop_in_function_conversion():

    two_way_conversion_test('def clear():\n'
                            '    grid = []\n'
                            '    for i in range(0, config.SIZE):\n'
                            '        grid.append(0)\n\n\n\n\n',
                            'function clear() {\n'
                            '    grid = [];\n'
                            '    for (i in range(0, config.SIZE)) {\n'
                            '        grid.push(0);\n'
                            '    }\n'
                            '}\n\n\n',
                            'def clear():\n'
                            '    grid = []\n'
                            '    for i in range(0, config.SIZE):\n'
                            '        grid.append(0)\n'
                            '    \n\n\n\n')
Tests to ensure a for loop within a function gets converted as expected
dataset/ETHPy150Open timothycrosley/jiphy/test_jiphy.py/test_for_loop_in_function_conversion