summaryrefslogtreecommitdiff
path: root/test/readline/test_readline_history.rb
diff options
context:
space:
mode:
authorkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-22 17:13:25 +0000
committerkouji <kouji@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-22 17:13:25 +0000
commitb043284bfe51791d39ff4a8644fcf7ab96e8619b (patch)
treeae2687798b59b9866c94ef77cb0ddae8a5f4fa1a /test/readline/test_readline_history.rb
parentc3eecb35d88b92d3d0b04da963e67171dc4bf398 (diff)
* test/readline/test_readline_history.rb
(Readline::TestHistory#test_each): checked return value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/readline/test_readline_history.rb')
-rw-r--r--test/readline/test_readline_history.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/readline/test_readline_history.rb b/test/readline/test_readline_history.rb
index 8033a9a827..d80d432622 100644
--- a/test/readline/test_readline_history.rb
+++ b/test/readline/test_readline_history.rb
@@ -205,16 +205,18 @@ class Readline::TestHistory < Test::Unit::TestCase
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