aboutsummaryrefslogtreecommitdiffstats
path: root/test/readline
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
commit287a34ae0dfc23e4158f67cb7783d239f202c368 (patch)
tree5e35d5b41aae961b37cf6632f60c42f51c7aa775 /test/readline
parent9b52ae2e6491bb5d6c59e1799449f6268baf6f89 (diff)
downloadruby-287a34ae0dfc23e4158f67cb7783d239f202c368.tar.gz
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/readline')
-rw-r--r--test/readline/test_readline.rb6
-rw-r--r--test/readline/test_readline_history.rb20
2 files changed, 13 insertions, 13 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 846f80d247..c9a88c2f68 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -36,7 +36,7 @@ class TestReadline < Test::Unit::TestCase
def teardown
Readline.instance_variable_set("@completion_proc", nil)
end
-
+
def test_safe_level_4
method_args =
[
@@ -119,7 +119,7 @@ class TestReadline < Test::Unit::TestCase
Readline.input = "This is not a file."
end
end
-
+
def test_output=
assert_raise(TypeError) do
Readline.output = "This is not a file."
@@ -156,7 +156,7 @@ class TestReadline < Test::Unit::TestCase
rescue NotImplementedError
end
end
-
+
# vi_editing_mode
# emacs_editing_mode
def test_editing_mode
diff --git a/test/readline/test_readline_history.rb b/test/readline/test_readline_history.rb
index 0640d08eba..a5d8c686da 100644
--- a/test/readline/test_readline_history.rb
+++ b/test/readline/test_readline_history.rb
@@ -73,7 +73,7 @@ class Readline::TestHistory < Test::Unit::TestCase
}.join
end
end
-
+
def test_to_s
expected = "HISTORY"
assert_equal(expected, HISTORY.to_s)
@@ -101,7 +101,7 @@ class Readline::TestHistory < Test::Unit::TestCase
HISTORY[i]
end
end
-
+
invalid_indexes = [100_000_000_000_000_000_000,
-100_000_000_000_000_000_000]
invalid_indexes.each do |i|
@@ -127,7 +127,7 @@ class Readline::TestHistory < Test::Unit::TestCase
assert_raise(IndexError, NotImplementedError, "index=<0>") do
HISTORY[0] = "set: 0"
end
-
+
lines = push_history(5)
invalid_indexes = [5, 6, 100, -6, -7, -100]
invalid_indexes.each do |i|
@@ -135,7 +135,7 @@ class Readline::TestHistory < Test::Unit::TestCase
HISTORY[i] = "set: #{i}"
end
end
-
+
invalid_indexes = [100_000_000_000_000_000_000,
-100_000_000_000_000_000_000]
invalid_indexes.each do |i|
@@ -180,13 +180,13 @@ class Readline::TestHistory < Test::Unit::TestCase
def test_pop
begin
assert_equal(nil, HISTORY.pop)
-
+
lines = push_history(5)
(1..5).each do |i|
assert_external_string_equal(lines[-i], HISTORY.pop)
assert_equal(lines.length - i, HISTORY.length)
end
-
+
assert_equal(nil, HISTORY.pop)
rescue NotImplementedError
end
@@ -195,13 +195,13 @@ class Readline::TestHistory < Test::Unit::TestCase
def test_shift
begin
assert_equal(nil, HISTORY.shift)
-
+
lines = push_history(5)
(0..4).each do |i|
assert_external_string_equal(lines[i], HISTORY.shift)
assert_equal(lines.length - (i + 1), HISTORY.length)
end
-
+
assert_equal(nil, HISTORY.shift)
rescue NotImplementedError
end
@@ -276,7 +276,7 @@ class Readline::TestHistory < Test::Unit::TestCase
assert_raise(IndexError, NotImplementedError, "index=<0>") do
HISTORY.delete_at(0)
end
-
+
lines = push_history(5)
invalid_indexes = [5, 6, 100, -6, -7, -100]
invalid_indexes.each do |i|
@@ -284,7 +284,7 @@ class Readline::TestHistory < Test::Unit::TestCase
HISTORY.delete_at(i)
end
end
-
+
invalid_indexes = [100_000_000_000_000_000_000,
-100_000_000_000_000_000_000]
invalid_indexes.each do |i|