summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorMasamitsu MURASE <[email protected]>2013-01-20 05:00:06 +0900
committerMasamitsu MURASE <[email protected]>2013-01-20 05:00:06 +0900
commitf04d9b1c50427870df3391fd1cfb83c2b1ee5a17 (patch)
treef759c42fdcb45dc428c9e1d1d38137d20e17cbd2 /test
parent38b32a55c6356a3048ed19d167336542f7ef3213 (diff)
downloadmruby-f04d9b1c50427870df3391fd1cfb83c2b1ee5a17.tar.gz
mruby-f04d9b1c50427870df3391fd1cfb83c2b1ee5a17.zip
Add a test for quoted non-expanded string literal.
Diffstat (limited to 'test')
-rw-r--r--test/t/literals.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/t/literals.rb b/test/t/literals.rb
index 700c4c846..c996af3f3 100644
--- a/test/t/literals.rb
+++ b/test/t/literals.rb
@@ -40,9 +40,10 @@ assert('Literals Strings Quoted Non-Expanded', '8.7.6.3.4') do
d = %q<abc>
e = %q/abc/
f = %q/ab\/c/
+ g = %q{#{a}}
a == 'abc' and b == 'abc' and c == 'abc' and d == 'abc' and
- e == 'abc' and f == 'ab/c'
+ e == 'abc' and f == 'ab/c' and g == '#{a}'
end
assert('Literals Strings Quoted Expanded', '8.7.6.3.5') do