diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-13 06:10:37 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-01-13 06:10:37 +0000 |
commit | 1c58146ee508ee8d0621c4163b84676011a11ad0 (patch) | |
tree | 073ce8a6a42ae397a3308f0a3975199f1014850d /test/test_shellwords.rb | |
parent | d00fe54803361cb0a63325427f91a745a2488b72 (diff) | |
download | ruby-1c58146ee508ee8d0621c4163b84676011a11ad0.tar.gz |
Forgot to commit the test part.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_shellwords.rb')
-rw-r--r-- | test/test_shellwords.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_shellwords.rb b/test/test_shellwords.rb index bd44aec1af..59cdbe96dc 100644 --- a/test/test_shellwords.rb +++ b/test/test_shellwords.rb @@ -47,6 +47,11 @@ class TestShellwords < Test::Unit::TestCase 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 |