dotemacs

My Emacs configuration
git clone git://git.entf.net/dotemacs
Log | Files | Refs | LICENSE

octave-mode-expansions.feature (1787B)


      1 Feature: octave-mod expansions
      2   In order to quickly and precisely mark octave units
      3   As an Emacs user
      4   I want to expand to them
      5 
      6   Scenario: Mark block from inside
      7     Given I turn on octave-mode
      8     And there is no region selected
      9     When I insert:
     10     """
     11     exprBefore;
     12     for i=1:n,
     13       something;
     14     end;
     15     exprAfter;
     16     """
     17     And I go to point "26"
     18     And I press "C-@"
     19     And I press "C-@"
     20     Then the region should be:
     21     """
     22     for i=1:n,
     23       something;
     24     end
     25     """
     26 
     27 
     28   Scenario: Mark block when looking at it
     29     Given I turn on octave-mode
     30     And there is no region selected
     31     When I insert:
     32     """
     33     exprBefore;
     34     for i=1:n,
     35       something;
     36     end;
     37     exprAfter;
     38     """
     39     And I go to point "13"
     40     And I press "C-@"
     41     And I press "C-@"
     42     Then the region should be:
     43     """
     44     for i=1:n,
     45       something;
     46     end
     47     """
     48 
     49 
     50   Scenario: Mark block when looking at it inside another block
     51     Given I turn on octave-mode
     52     And there is no region selected
     53     When I insert:
     54     """
     55     exprBefore;
     56     for i=1:n,
     57       for j=i:k,
     58         something;
     59       end;
     60     end;
     61     exprAfter;
     62     """
     63     And I go to point "26"
     64     And I press "C-@"
     65     And I press "C-@"
     66     Then the region should be:
     67     """
     68     for j=i:k,
     69         something;
     70       end
     71     """
     72 
     73 
     74   Scenario: Mark block from inside while looking at another
     75     Given I turn on octave-mode
     76     And there is no region selected
     77     When I insert:
     78     """
     79     exprBefore;
     80     for i=1:n,
     81       for j=i:k,
     82         something;
     83       end;
     84     end;
     85     exprAfter;
     86     """
     87     And I go to point "26"
     88     And I press "C-@"
     89     And I press "C-@"
     90     And I press "C-@"
     91     Then the region should be:
     92     """
     93     for i=1:n,
     94       for j=i:k,
     95         something;
     96       end;
     97     end
     98     """
     99