Project

General

Profile

Feature #6626 ยป 0003-test-readline-test_readline.rb-use-delete_text.patch

nobu (Nobuyoshi Nakada), 06/22/2012 03:20 PM

View differences:

test/readline/test_readline.rb
429 429
    assert_equal("hello", line, bug6601)
430 430
  ensure
431 431
    wo.close
432
    with_pipe {|r, w| w.write("\C-a\C-k\n")} # clear line_buffer
432
    Readline.delete_text
433 433
    Readline::HISTORY.clear
434 434
  end if !/EditLine/n.match(Readline::VERSION)
435 435

  
......
452 452
      end
453 453
    end
454 454
  ensure
455
    with_pipe {|r, w| w.write("\C-a\C-k\n")} # clear line_buffer
455
    Readline.delete_text
456 456
    Readline::HISTORY.clear
457 457
  end if !/EditLine/n.match(Readline::VERSION)
458 458