diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 14:06:31 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-25 14:06:31 +0000 |
commit | e6c5b9f30840ae985c4bdcb91435e9c2c06fb7ef (patch) | |
tree | c13b0ab1c74db848c100581d765fd52073f7be03 /sample | |
parent | c6629c48e61f341aa5e0b4b8f0c4816a2e9e0cc1 (diff) |
revert r37326 "remove string literal concatenation"
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rwxr-xr-x | sample/test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sample/test.rb b/sample/test.rb index 11f15de938..26cf0a1d97 100755 --- a/sample/test.rb +++ b/sample/test.rb @@ -1612,6 +1612,10 @@ test_check "string & char" test_ok("abcd" == "abcd") test_ok("abcd" =~ /abcd/) test_ok("abcd" === "abcd") +# compile time string concatenation +test_ok("ab" "cd" == "abcd") +test_ok("#{22}aa" "cd#{44}" == "22aacd44") +test_ok("#{22}aa" "cd#{44}" "55" "#{66}" == "22aacd445566") test_ok("abc" !~ /^$/) test_ok("abc\n" !~ /^$/) test_ok("abc" !~ /^d*$/) |