aboutsummaryrefslogtreecommitdiffstats
path: root/test/-ext-/test_printf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/-ext-/test_printf.rb')
-rw-r--r--test/-ext-/test_printf.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/-ext-/test_printf.rb b/test/-ext-/test_printf.rb
index cd3ba76364..feaeadd975 100644
--- a/test/-ext-/test_printf.rb
+++ b/test/-ext-/test_printf.rb
@@ -24,6 +24,8 @@ class Test_SPrintf < Test::Unit::TestCase
assert_equal('["\n"]', Bug::Printf.q("\n"))
assert_equal('[aaa]', Bug::Printf.q('aaa'))
assert_equal('[a a]', Bug::Printf.q('a a'))
+ assert_equal('[]', Bug::Printf.q(''))
+ assert_equal('[""]', Bug::Printf.q(:''))
end
def test_encoding