aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 4e8ffe56fb..1eefbf1c7c 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -981,6 +981,13 @@ eom
assert_syntax_error("a&.x,=0", /multiple assignment destination/)
end
+ def test_fluent_dot_with_empty_lines_between
+ assert_valid_syntax("a #\n #\n.foo")
+ assert_valid_syntax("a #\n #\n&.foo")
+ # assert_valid_syntax("a\n\n.foo")
+ # assert_valid_syntax("a \n \n &.foo")
+ end
+
def test_no_warning_logop_literal
assert_warning("") do
eval("true||raise;nil")