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
139 139
        Readline.completion_proc = proc { |text|
140 140
          actual_text = text
141 141
          actual_point = Readline.point
142
          actual_buffer_line = Readline.line_buffer
142
          actual_line_buffer = Readline.line_buffer
143 143
          stdin.write(" finish\n")
144 144
          stdin.close
145 145
          stdout.close
146
          return ["complete"]
146
          ["complete"]
147 147
        }
148 148
        stdin.write("first second\t")
149 149
        stdin.flush
150
        line = replace_stdio(stdin.path, stdout.path) {
150
        replace_stdio(stdin.path, stdout.path) {
151 151
          Readline.readline("> ", false)
152 152
        }
153 153
        assert_equal("first second", actual_line_buffer)
154
-