diff options
| author | Carson McDonald <[email protected]> | 2014-04-28 14:22:55 -0400 |
|---|---|---|
| committer | Carson McDonald <[email protected]> | 2014-04-28 14:22:55 -0400 |
| commit | 9ac817ae7820d6cc6a7658997a63584daea1a296 (patch) | |
| tree | 8e35e1c6abbc990069eb359b14ea77f857a24a95 /test | |
| parent | b2f3919bc2ac133d46566f930f6cf84b65c41441 (diff) | |
| download | mruby-9ac817ae7820d6cc6a7658997a63584daea1a296.tar.gz mruby-9ac817ae7820d6cc6a7658997a63584daea1a296.zip | |
Add tests for multiline comment parsing
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/syntax.rb | 16 |
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 |
