Project

General

Profile

Bug #5802 » 0001-fix-typo-and-suppress-warning-assigned-but-unused-va.patch

no6v (Nobuhiro IMAI), 12/24/2011 12:39 AM

View differences:

test/readline/test_readline.rb
Readline.completion_proc = proc { |text|
actual_text = text
actual_point = Readline.point
actual_buffer_line = Readline.line_buffer
actual_line_buffer = Readline.line_buffer
stdin.write(" finish\n")
stdin.close
stdout.close
return ["complete"]
["complete"]
}
stdin.write("first second\t")
stdin.flush
line = replace_stdio(stdin.path, stdout.path) {
replace_stdio(stdin.path, stdout.path) {
Readline.readline("> ", false)
}
assert_equal("first second", actual_line_buffer)
(1-1/2)