ruby-changes:26905
From: nobu <ko1@a...>
Date: Sun, 27 Jan 2013 13:04:38 +0900 (JST)
Subject: [ruby-changes:26905] nobu:r38957 (trunk): test_system.rb: indent
nobu 2013-01-27 13:04:26 +0900 (Sun, 27 Jan 2013) New Revision: 38957 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38957 Log: test_system.rb: indent * test/ruby/test_system.rb (TestSystem#test_system): adjust indent Modified files: trunk/test/ruby/test_system.rb Index: test/ruby/test_system.rb =================================================================== --- test/ruby/test_system.rb (revision 38956) +++ test/ruby/test_system.rb (revision 38957) @@ -93,25 +93,25 @@ class TestSystem < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_system.rb#L93 end def test_system_at - if /mswin|mingw/ =~ RUBY_PLATFORM - bug4393 = '[ruby-core:35218]' + if /mswin|mingw/ =~ RUBY_PLATFORM + bug4393 = '[ruby-core:35218]' - # @ + builtin command - assert_equal("foo\n", `@echo foo`, bug4393); - assert_equal("foo\n", `@@echo foo`, bug4393); - assert_equal("@@foo\n", `@@echo @@foo`, bug4393); - - # @ + non builtin command - Dir.mktmpdir("ruby_script_tmp") {|tmpdir| - tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" - - tmp = open(tmpfilename, "w") - tmp.print "foo\nbar\nbaz\n@foo"; - tmp.close - - assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); - } - end + # @ + builtin command + assert_equal("foo\n", `@echo foo`, bug4393); + assert_equal("foo\n", `@@echo foo`, bug4393); + assert_equal("@@foo\n", `@@echo @@foo`, bug4393); + + # @ + non builtin command + Dir.mktmpdir("ruby_script_tmp") {|tmpdir| + tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" + + tmp = open(tmpfilename, "w") + tmp.print "foo\nbar\nbaz\n@foo"; + tmp.close + + assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); + } + end end def test_system_redirect_win -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/