aboutsummaryrefslogtreecommitdiffstats
path: root/test/readline
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 02:58:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-19 02:58:43 +0000
commite47c4e38a8e9cdd82417ccb514b132e28ee084a8 (patch)
tree9cde65a4f4b145c377818774096c6fb9ed55b601 /test/readline
parentd998ba1c3ca32260a111b85ddab1dd1e564b16f7 (diff)
downloadruby-e47c4e38a8e9cdd82417ccb514b132e28ee084a8.tar.gz
* ext/readline/readline.c (readline_s_get_special_prefixes): suppress
warning: unitinialized instance variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/readline')
-rw-r--r--test/readline/test_readline_history.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/readline/test_readline_history.rb b/test/readline/test_readline_history.rb
index a5d8c686da..e21d170cc3 100644
--- a/test/readline/test_readline_history.rb
+++ b/test/readline/test_readline_history.rb
@@ -94,7 +94,7 @@ class Readline::TestHistory < Test::Unit::TestCase
end
def test_get__out_of_range
- lines = push_history(5)
+ push_history(5)
invalid_indexes = [5, 6, 100, -6, -7, -100]
invalid_indexes.each do |i|
assert_raise(IndexError, "i=<#{i}>") do
@@ -113,7 +113,7 @@ class Readline::TestHistory < Test::Unit::TestCase
def test_set
begin
- lines = push_history(5)
+ push_history(5)
5.times do |i|
expected = "set: #{i}"
HISTORY[i] = expected
@@ -128,7 +128,7 @@ class Readline::TestHistory < Test::Unit::TestCase
HISTORY[0] = "set: 0"
end
- lines = push_history(5)
+ push_history(5)
invalid_indexes = [5, 6, 100, -6, -7, -100]
invalid_indexes.each do |i|
assert_raise(IndexError, NotImplementedError, "index=<#{i}>") do
@@ -277,7 +277,7 @@ class Readline::TestHistory < Test::Unit::TestCase
HISTORY.delete_at(0)
end
- lines = push_history(5)
+ push_history(5)
invalid_indexes = [5, 6, 100, -6, -7, -100]
invalid_indexes.each do |i|
assert_raise(IndexError, NotImplementedError, "index=<#{i}>") do