summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/syntax.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb
index 159b36574..0bb3fa389 100644
--- a/test/t/syntax.rb
+++ b/test/t/syntax.rb
@@ -293,3 +293,19 @@ end
assert('optional block argument in the rhs default expressions') do
assert_nil(Proc.new {|foo = foo| foo}.call)
end
+
+assert('multiline comments work correctly') do
+=begin
+this is a comment with nothing after begin and end
+=end
+=begin this is a comment
+this is a comment with extra after =begin
+=end
+=begin
+this is a comment that has =end with spaces after it
+=end
+=begin this is a comment
+this is a comment that has extra after =begin and =end with spaces after it
+=end
+ true
+end