mark-pairs.feature (2091B)
1 Feature: Mark pairs 2 In order to quickly and precisely mark pairs 3 As an Emacs user 4 I want to expand to them 5 6 Scenario: Mark pair when looking at it 7 Given there is no region selected 8 When I insert "... (some parens) ..." 9 And I go to point "5" 10 And I press "C-@" 11 Then the region should be "(some parens)" 12 13 Scenario: Mark pair when looking behind at it 14 Given there is no region selected 15 When I insert "... (some parens) ..." 16 And I go to point "18" 17 And I press "C-@" 18 Then the region should be "(some parens)" 19 20 Scenario: Mark inside pairs 21 Given there is no region selected 22 When I insert "... (some parens) ..." 23 And I go to point "10" 24 And I press "C-@" 25 And I press "C-@" 26 Then the region should be "some parens" 27 28 Scenario: Mark child in nested pairs 29 Given there is no region selected 30 When I insert "... (some (more parens)) ..." 31 And I go to point "11" 32 And I press "C-@" 33 Then the region should be "(more parens)" 34 35 Scenario: Mark inner parent in nested pairs 36 Given there is no region selected 37 When I insert "... (some (more parens)) ..." 38 And I go to point "11" 39 And I press "C-@" 40 And I press "C-@" 41 Then the region should be "some (more parens)" 42 43 Scenario: Mark outer parent in nested pairs 44 Given there is no region selected 45 When I insert "... (some (more parens)) ..." 46 And I go to point "11" 47 And I press "C-@" 48 And I press "C-@" 49 And I press "C-@" 50 Then the region should be "(some (more parens))" 51 52 Scenario: Mark outer parent in nested pairs (leftie) 53 Given there is no region selected 54 When I insert "... ((some more) parens) ..." 55 And I go to point "6" 56 And I press "C-@" 57 And I press "C-@" 58 And I press "C-@" 59 Then the region should be "((some more) parens)" 60 61 Scenario: Mark from behind multiline 62 Given there is no region selected 63 When I insert: 64 """ 65 (let ((test :test)) 66 (testing)) 67 """ 68 And I place the cursor after ":test))" 69 And I press "C-@" 70 Then the region should be "((test :test))"