ruby-changes:13623
From: nobu <ko1@a...>
Date: Tue, 20 Oct 2009 15:36:38 +0900 (JST)
Subject: [ruby-changes:13623] Ruby:r25406 (trunk): * test/ripper/test_*.rb: fixed indent.
nobu 2009-10-20 15:35:26 +0900 (Tue, 20 Oct 2009) New Revision: 25406 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25406 Log: * test/ripper/test_*.rb: fixed indent. Modified files: trunk/test/ripper/test_files.rb trunk/test/ripper/test_filter.rb trunk/test/ripper/test_parser_events.rb trunk/test/ripper/test_scanner_events.rb Index: test/ripper/test_parser_events.rb =================================================================== --- test/ripper/test_parser_events.rb (revision 25405) +++ test/ripper/test_parser_events.rb (revision 25406) @@ -1,9 +1,11 @@ begin + require_relative 'dummyparser' + require_relative '../ruby/envutil' + require 'test/unit' + ripper_test = true +rescue LoadError +end -require_relative 'dummyparser' -require_relative '../ruby/envutil' -require 'test/unit' - class TestRipper_ParserEvents < Test::Unit::TestCase # should be enabled @@ -624,7 +626,4 @@ ["[fcall(proc,[],&block([],[void()]))]"], [], '[ruby-dev:39423]') end end -end - -rescue LoadError -end +end if ripper_test Index: test/ripper/test_files.rb =================================================================== --- test/ripper/test_files.rb (revision 25405) +++ test/ripper/test_files.rb (revision 25406) @@ -1,9 +1,11 @@ begin + require 'ripper' + require 'find' + require 'test/unit' + ripper_test = true +rescue LoadError +end -require 'ripper' -require 'find' -require 'test/unit' - class TestRipper_Generic < Test::Unit::TestCase SRCDIR = File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__)))) @@ -21,8 +23,4 @@ assert_nothing_raised("ripper failed to parse: #{n.inspect}") { Parser.new(File.read(n)).parse } } end -end - -rescue LoadError -end - +end if ripper_test Index: test/ripper/test_filter.rb =================================================================== --- test/ripper/test_filter.rb (revision 25405) +++ test/ripper/test_filter.rb (revision 25406) @@ -1,8 +1,10 @@ begin + require 'ripper' + require 'test/unit' + ripper_test = true +rescue LoadError +end -require 'ripper' -require 'test/unit' - class TestRipper_Filter < Test::Unit::TestCase class Filter < Ripper::Filter @@ -48,7 +50,4 @@ Filter.new(File.read(filename)).parse(data) assert_equal("begin", data[:token]) end -end - -rescue LoadError -end +end if ripper_test Index: test/ripper/test_scanner_events.rb =================================================================== --- test/ripper/test_scanner_events.rb (revision 25405) +++ test/ripper/test_scanner_events.rb (revision 25406) @@ -2,10 +2,12 @@ # test_scanner_events.rb # begin + require 'ripper' + require 'test/unit' + ripper_test = true +rescue LoadError +end -require 'ripper' -require 'test/unit' - class TestRipper_ScannerEvents < Test::Unit::TestCase def test_event_coverage @@ -806,7 +808,4 @@ def test_tlambda_arg end -end - -rescue LoadError -end +end if ripper_test -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/