aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2013-10-07 16:27:29 +0300
committerDmitry Gutov2013-10-07 16:27:29 +0300
commit2f84ba10862ccbd5fb70044b160c43e4c00b5822 (patch)
tree7d96faa57a58ca8cd2e894ddd0695bcc51b7995a
parent81856d28fc944c68c0fd76f8df5c4ae073ed67f2 (diff)
downloademacs-2f84ba10862ccbd5fb70044b160c43e4c00b5822.tar.gz
emacs-2f84ba10862ccbd5fb70044b160c43e4c00b5822.zip
* test/indent/ruby.rb: Fix a spurious change, add more failing examples.
-rw-r--r--test/ChangeLog4
-rw-r--r--test/indent/ruby.rb20
2 files changed, 21 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 7392010cb93..7673e35e4bd 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,7 @@
12013-10-07 Dmitry Gutov <dgutov@yandex.ru>
2
3 * indent/ruby.rb: Fix a spurious change, add more failing examples.
4
12013-10-06 Dmitry Gutov <dgutov@yandex.ru> 52013-10-06 Dmitry Gutov <dgutov@yandex.ru>
2 6
3 * automated/ruby-mode-tests.el: Add tests for `ruby-forward-sexp' 7 * automated/ruby-mode-tests.el: Add tests for `ruby-forward-sexp'
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb
index 7c8de323bdb..366d572449f 100644
--- a/test/indent/ruby.rb
+++ b/test/indent/ruby.rb
@@ -114,7 +114,7 @@ ensure
114end 114end
115 115
116# Bug#15369 116# Bug#15369
117MSG = 'Separate every 3 digits in the integer portion of a number' + 117MSG = 'Separate every 3 digits in the integer portion of a number' \
118 'with underscores(_).' 118 'with underscores(_).'
119 119
120class C 120class C
@@ -137,7 +137,21 @@ desc "foo foo" \
137foo. 137foo.
138 bar 138 bar
139 139
140# FIXME: is this really valid Ruby? Isn't the newline after "foo" treated as 140# Examples below still fail with `ruby-use-smie' on:
141# an implicit semi-colon? 141
142# https://github.com/rails/rails/blob/17f5d8e062909f1fcae25351834d8e89967b645e/activesupport/lib/active_support/time_with_zone.rb#L206
142foo 143foo
143 .bar 144 .bar
145
146z = {
147 foo: {
148 a: "aaa",
149 b: "bbb"
150 }
151}
152
153foo +
154 bar
155
156foo if
157 bar