ruby-changes:14651
From: yugui <ko1@a...>
Date: Sat, 30 Jan 2010 22:06:46 +0900 (JST)
Subject: [ruby-changes:14651] Ruby:r26499 (ruby_1_9_1): merges r25426 from trunk into ruby_1_9_1.
yugui 2010-01-30 21:51:46 +0900 (Sat, 30 Jan 2010) New Revision: 26499 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26499 Log: merges r25426 from trunk into ruby_1_9_1. -- * test/scanf/test_scanfio.rb (TestScanfIO): needs to inherit TestCase. * test/scanf/test_scanfio.rb (TestScanfIO#test_io): fixed a typo. close test data file. Modified files: branches/ruby_1_9_1/test/scanf/test_scanfio.rb branches/ruby_1_9_1/version.h Index: ruby_1_9_1/version.h =================================================================== --- ruby_1_9_1/version.h (revision 26498) +++ ruby_1_9_1/version.h (revision 26499) @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 404 +#define RUBY_PATCHLEVEL 405 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 Index: ruby_1_9_1/test/scanf/test_scanfio.rb =================================================================== --- ruby_1_9_1/test/scanf/test_scanfio.rb (revision 26498) +++ ruby_1_9_1/test/scanf/test_scanfio.rb (revision 26499) @@ -7,13 +7,14 @@ require "scanf" -class TestScanfIO +class TestScanfIO < Test::Unit::TestCase def test_io fh = File.new(File.join(File.dirname(__FILE__), "data.txt"), "r") assert_equal(0, fh.pos) assert_equal(["this", "is"], fh.scanf("%s%s")) - assert_equal([33, "littel"], fh.scanf("%da fun%s")) - #p fh.pos + assert_equal([33, "little"], fh.scanf("%da fun%s")) + ensure + fh.close end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/