Skip to content

Commit

Permalink
* sample/test.rb: "print nil" now prints empty string.
Browse files Browse the repository at this point in the history
* test/ruby/test_system.rb (TestSystem::test_system): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Sep 25, 2006
1 parent 5cc2093 commit db7f24b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Mon Sep 25 15:06:18 2006 Yukihiro Matsumoto <[email protected]>

* sample/test.rb: "print nil" now prints empty string.

* test/ruby/test_system.rb (TestSystem::test_system): ditto.

Mon Sep 25 11:26:25 2006 Yukihiro Matsumoto <[email protected]>

* hash.c (recursive_hash): remove unused local variable.
Expand Down
2 changes: 1 addition & 1 deletion sample/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,7 @@ module EvTest
tmp.print "this is a trailing junk\n";
tmp.close

test_ok(`./miniruby -x script_tmp` == 'nil')
test_ok(`./miniruby -x script_tmp` == '')
test_ok(`./miniruby -x script_tmp -zzz=555` == '555')

tmp = open("script_tmp", "w")
Expand Down
2 changes: 1 addition & 1 deletion test/ruby/test_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_system
tmp.print "this is a trailing junk\n";
tmp.close

assert_equal('nil', `#{ruby} -x script_tmp`)
assert_equal('', `#{ruby} -x script_tmp`)
assert_equal('555', `#{ruby} -x script_tmp -zzz=555`)

tmp = open("script_tmp", "w")
Expand Down

0 comments on commit db7f24b

Please sign in to comment.