diff options
| author | Dmitry Gutov | 2013-10-23 00:47:29 +0400 |
|---|---|---|
| committer | Dmitry Gutov | 2013-10-23 00:47:29 +0400 |
| commit | a6462ef558928da82279e437399cc169fb60b7ef (patch) | |
| tree | be2946659dc041a9263357bcc7f07fd9a3f7371b | |
| parent | 7790a27058bf9ec3dcdf31746853f125d6c84693 (diff) | |
| download | emacs-a6462ef558928da82279e437399cc169fb60b7ef.tar.gz emacs-a6462ef558928da82279e437399cc169fb60b7ef.zip | |
* test/indent/ruby.rb: Move two examples to "working" section, add one
more.
| -rw-r--r-- | test/ChangeLog | 5 | ||||
| -rw-r--r-- | test/indent/ruby.rb | 18 |
2 files changed, 16 insertions, 7 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 609a4e2d007..71104b64364 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-22 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * indent/ruby.rb: Move two examples to "working" section, add one | ||
| 4 | more. | ||
| 5 | |||
| 1 | 2013-10-21 Dmitry Gutov <dgutov@yandex.ru> | 6 | 2013-10-21 Dmitry Gutov <dgutov@yandex.ru> |
| 2 | 7 | ||
| 3 | * indent/ruby.rb: New examples for indentation of blocks. Example | 8 | * indent/ruby.rb: New examples for indentation of blocks. Example |
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index 5c47eea0baf..7ce60f5f58b 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -193,6 +193,16 @@ foo_bar_tee(1, 2, 3) | |||
| 193 | .qux | 193 | .qux |
| 194 | .bar | 194 | .bar |
| 195 | 195 | ||
| 196 | foo do | ||
| 197 | bar | ||
| 198 | .tee | ||
| 199 | end | ||
| 200 | |||
| 201 | def bar | ||
| 202 | foo | ||
| 203 | .baz | ||
| 204 | end | ||
| 205 | |||
| 196 | # Examples below still fail with `ruby-use-smie' on: | 206 | # Examples below still fail with `ruby-use-smie' on: |
| 197 | 207 | ||
| 198 | foo = [1, 2, 3].map do |i| | 208 | foo = [1, 2, 3].map do |i| |
| @@ -211,12 +221,6 @@ method :foo, | |||
| 211 | method (a + b), | 221 | method (a + b), |
| 212 | c | 222 | c |
| 213 | 223 | ||
| 214 | foo do | 224 | bar.foo do # "." is parent to "do"; it shouldn't be. |
| 215 | bar | 225 | bar |
| 216 | .tee | ||
| 217 | end | ||
| 218 | |||
| 219 | def bar | ||
| 220 | foo | ||
| 221 | .baz | ||
| 222 | end | 226 | end |