diff options
author | Josh Cheek <josh.cheek@gmail.com> | 2019-02-06 00:43:27 -0600 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-15 11:25:38 +0900 |
commit | 162bfa1c7cf325f6efce6f6e080d29db91fbcf78 (patch) | |
tree | f2a9a653bd3ace4a4910ae5c128d7be315ee8305 /test | |
parent | cc180e937100c72b7ce849602c9d93d8e8a3d2aa (diff) |
Test comments between multiline method chain
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_syntax.rb | 7 |
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") |