diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 03:56:38 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-06 03:56:38 +0000 |
| commit | d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad (patch) | |
| tree | 5e35d5b41aae961b37cf6632f60c42f51c7aa775 /test/readline | |
| parent | 101e79d7b434c01c0e6f4bcc480003858ab8e1a4 (diff) | |
| download | ruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.tar.gz ruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.tar.xz ruby-d17d1b111341f2c8979cf8fbd63ec7ec9db7c3ad.zip | |
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/readline')
| -rw-r--r-- | test/readline/test_readline.rb | 6 | ||||
| -rw-r--r-- | test/readline/test_readline_history.rb | 20 |
2 files changed, 13 insertions, 13 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb index 846f80d24..c9a88c2f6 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 0640d08eb..a5d8c686d 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| |
