ruby-changes:22240
From: knu <ko1@a...>
Date: Fri, 13 Jan 2012 15:10:49 +0900 (JST)
Subject: [ruby-changes:22240] knu:r34289 (trunk): Forgot to commit the test part.
knu 2012-01-13 15:10:37 +0900 (Fri, 13 Jan 2012) New Revision: 34289 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34289 Log: Forgot to commit the test part. Modified files: trunk/test/test_shellwords.rb Index: test/test_shellwords.rb =================================================================== --- test/test_shellwords.rb (revision 34288) +++ test/test_shellwords.rb (revision 34289) @@ -47,6 +47,11 @@ assert_equal [expected], shellwords(cmdline) end + def test_stringification + assert_equal "3", shellescape(3) + assert_equal "ps -p #{$$}", ['ps', '-p', $$].shelljoin + end + def test_multibyte_characters # This is not a spec. It describes the current behavior which may # be changed in future. There would be no multibyte character -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/