Exemplo n.º 1
0
 def test_4_1(self):
     assert _is_space_indented_line('comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_space_indented_line('  comment\n',
                                    3, '*', False, (2, 2, 2)) == False
     assert _is_space_indented_line('   comment\n',
                                    3, '*', False, (2, 2, 2)) == True
Exemplo n.º 2
0
 def test_4_1(self):
     assert _is_space_indented_line('comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_space_indented_line('  comment\n', 3, '*', False,
                                    (2, 2, 2)) == False
     assert _is_space_indented_line('   comment\n', 3, '*', False,
                                    (2, 2, 2)) == True
Exemplo n.º 3
0
 def test_4_2(self):
     assert _is_space_indented_line('*/',
                                    3, '*', True, (2, 2, 2)) == True
     assert _is_space_indented_line(' */',
                                    3, '*', True, (2, 2, 2)) == True
Exemplo n.º 4
0
 def test_4_2(self):
     assert _is_space_indented_line('*/', 3, '*', True, (2, 2, 2)) == True
     assert _is_space_indented_line(' */', 3, '*', True, (2, 2, 2)) == True