Commit f9a568ad authored by dearblue's avatar dearblue

Add test for string literal concatenation

parent e871a153
......@@ -713,3 +713,10 @@ assert('String#freeze') do
assert_raise(RuntimeError) { str.upcase! }
end
assert('String literal concatenation') do
assert_equal 2, ("A" "B").size
assert_equal 3, ('A' "B" 'C').size
assert_equal 3, (?A "#{?B}C").size
assert_equal 4, (%(A) "B#{?C}" "D").size
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment