diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 16:20:24 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-11-19 16:20:24 +0000 |
| commit | 8afda8d7b7988719515e1a18879990bc41147776 (patch) | |
| tree | 2d4d7ff2cc30dcf6eb5e191299622b889644842b /sample | |
| parent | d2403667fd954c7f331d1453d1330fa5bb997bbe (diff) | |
| download | ruby-8afda8d7b7988719515e1a18879990bc41147776.tar.gz ruby-8afda8d7b7988719515e1a18879990bc41147776.tar.xz ruby-8afda8d7b7988719515e1a18879990bc41147776.zip | |
* parse.y (str_extend): should not terminate string interpolation
with newlines in here-docs and newline terminated strings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb index b342fb854..663a8695e 100644 --- a/sample/test.rb +++ b/sample/test.rb @@ -865,6 +865,13 @@ s = "a string" s[0..s.size]="another string" test_ok(s == "another string") +s = <<EOS +#{ +[1,2,3].join(",") +} +EOS +test_ok(s == "1,2,3\n") + test_check "assignment" a = nil test_ok(defined?(a)) |
