summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2012-06-02 06:33:02 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2012-06-02 06:33:02 -0700
commit19f45f2af471f24d1b22c35a7b9c23551d70cb97 (patch)
treef420bf73d0aa608250e142b2c6fad0ce9ae17628
parent22568f9a99d724c72e5bc5acb46e7df688466803 (diff)
parent6ec149c4e3da3b991a860250b32ca79775639592 (diff)
downloadmruby-19f45f2af471f24d1b22c35a7b9c23551d70cb97.tar.gz
mruby-19f45f2af471f24d1b22c35a7b9c23551d70cb97.zip
Merge pull request #227 from bovi/add-string-test
Add string test for string interpolation
-rw-r--r--test/t/string.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/string.rb b/test/t/string.rb
index f38790c17..ee969a696 100644
--- a/test/t/string.rb
+++ b/test/t/string.rb
@@ -319,3 +319,11 @@ assert('String#upcase!', '15.2.10.5.43') do
a == 'ABC'
end
+
+# Not ISO specified
+
+assert('String interpolation (mrb_str_concat for shared strings)') do
+ a = "A" * 32
+ "#{a}:" == "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA:"
+end
+