<s> from helper import TestHelper <EOL> import sublime <EOL> class TestJumpPrevIndent ( TestHelper ) : <EOL> def command ( self ) : <EOL> return '<STR_LIT>' <EOL> def test_empty_lines ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:0> , <NUM_LIT:0> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_indented_lines ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:0> , <NUM_LIT:0> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_beginning_of_file ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_maintain_column ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:12> , <NUM_LIT:12> ] <EOL> def test_jump_to_shorter_line ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_jump_to_first_intersection ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:3> , <NUM_LIT:3> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_create_selection ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT> , <NUM_LIT:0> ] <EOL> self . check_command ( lines , starting_selection , ending_selection , extend_selection = True ) <EOL> def test_extend_selection ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT> , <NUM_LIT:0> ] <EOL> self . check_command ( lines , starting_selection , ending_selection , extend_selection = True ) <EOL> def test_subtract_selection ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT:0> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:0> , <NUM_LIT:0> ] <EOL> self . check_command ( lines , starting_selection , ending_selection , extend_selection = True ) <EOL> def test_respect_cursor_position ( self ) : <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT:1> , <NUM_LIT:1> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> def test_disrespect_cursor_position ( self ) : <EOL> settings = sublime . load_settings ( "<STR_LIT>" ) <EOL> settings . set ( "<STR_LIT>" , False ) <EOL> lines = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] <EOL> starting_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> ending_selection = [ <NUM_LIT> , <NUM_LIT> ] <EOL> self . check_command ( lines , starting_selection , ending_selection ) <EOL> settings . set ( "<STR_LIT>" , True ) </s>
