Skip to content

Commit

Permalink
Remove useless tests (#665)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
st0012 committed Mar 25, 2024
1 parent 4928e06 commit 0eedf0e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
8 changes: 0 additions & 8 deletions lib/reline/general_io.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,6 @@ def self.in_pasting?
@@pasting
end

def self.start_pasting
@@pasting = true
end

def self.finish_pasting
@@pasting = false
end

def self.prep
end

Expand Down
8 changes: 0 additions & 8 deletions test/reline/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,6 @@ def test_rubybin
end
end

def start_pasting
Reline::GeneralIO.start_pasting
end

def finish_pasting
Reline::GeneralIO.finish_pasting
end

class Reline::TestCase < Test::Unit::TestCase
private def convert_str(input, options = {}, normalized = nil)
return nil if input.nil?
Expand Down
16 changes: 0 additions & 16 deletions test/reline/test_key_actor_vi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -764,22 +764,6 @@ def test_vi_next_char_with_operator
assert_line_around_cursor('', 'bar')
end

def test_pasting
start_pasting
input_keys('ab')
finish_pasting
input_keys('c')
assert_line_around_cursor('abc', '')
end

def test_pasting_fullwidth
start_pasting
input_keys('あ')
finish_pasting
input_keys('い')
assert_line_around_cursor('あい', '')
end

def test_ed_delete_next_char_at_eol
input_keys('"あ"')
assert_line_around_cursor('"あ"', '')
Expand Down

0 comments on commit 0eedf0e

Please sign in to comment.