Skip to content

Commit 0eedf0e

Browse files
authored
Remove useless tests (#665)
The pasting tests hadn't been working since as early as v0.2.0. Since what it tried to cover is already gone for such a long time, I think it's better to write new ones if needed then to keep them around. And since these tests are gone, the helper methods for just them are also gone.
1 parent 4928e06 commit 0eedf0e

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

lib/reline/general_io.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ def self.in_pasting?
102102
@@pasting
103103
end
104104

105-
def self.start_pasting
106-
@@pasting = true
107-
end
108-
109-
def self.finish_pasting
110-
@@pasting = false
111-
end
112-
113105
def self.prep
114106
end
115107

test/reline/helper.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,6 @@ def test_rubybin
7878
end
7979
end
8080

81-
def start_pasting
82-
Reline::GeneralIO.start_pasting
83-
end
84-
85-
def finish_pasting
86-
Reline::GeneralIO.finish_pasting
87-
end
88-
8981
class Reline::TestCase < Test::Unit::TestCase
9082
private def convert_str(input, options = {}, normalized = nil)
9183
return nil if input.nil?

test/reline/test_key_actor_vi.rb

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -764,22 +764,6 @@ def test_vi_next_char_with_operator
764764
assert_line_around_cursor('', 'bar')
765765
end
766766

767-
def test_pasting
768-
start_pasting
769-
input_keys('ab')
770-
finish_pasting
771-
input_keys('c')
772-
assert_line_around_cursor('abc', '')
773-
end
774-
775-
def test_pasting_fullwidth
776-
start_pasting
777-
input_keys('あ')
778-
finish_pasting
779-
input_keys('い')
780-
assert_line_around_cursor('あい', '')
781-
end
782-
783767
def test_ed_delete_next_char_at_eol
784768
input_keys('"あ"')
785769
assert_line_around_cursor('"あ"', '')

0 commit comments

Comments
 (0)