ruby-changes:7936
From: kouji <ko1@a...>
Date: Tue, 23 Sep 2008 02:13:39 +0900 (JST)
Subject: [ruby-changes:7936] Ruby:r19458 (trunk): * test/readline/test_readline_history.rb
kouji 2008-09-23 02:13:25 +0900 (Tue, 23 Sep 2008) New Revision: 19458 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19458 Log: * test/readline/test_readline_history.rb (Readline::TestHistory#test_each): checked return value. Modified files: trunk/ChangeLog trunk/test/readline/test_readline_history.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 19457) +++ ChangeLog (revision 19458) @@ -1,3 +1,8 @@ +Tue Sep 23 02:07:52 2008 TAKAO Kouji <kouji@t...> + + * test/readline/test_readline_history.rb + (Readline::TestHistory#test_each): checked return value. + Tue Sep 23 02:05:34 2008 TAKAO Kouji <kouji@t...> * ext/readline/readline.c (Init_readline): used remove_history to Index: test/readline/test_readline_history.rb =================================================================== --- test/readline/test_readline_history.rb (revision 19457) +++ test/readline/test_readline_history.rb (revision 19458) @@ -205,16 +205,18 @@ end def test_each - HISTORY.each do |s| + e = HISTORY.each do |s| assert(false) # not reachable end + assert_equal(HISTORY, e) lines = push_history(5) i = 0 - HISTORY.each do |s| + e = HISTORY.each do |s| assert_equal(HISTORY[i], s) assert_equal(lines[i], s) i += 1 end + assert_equal(HISTORY, e) end def test_each__enumerator -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/