[前][次][番号順一覧][スレッド一覧]

ruby-changes:60252

From: Koichi <ko1@a...>
Date: Mon, 2 Mar 2020 14:44:57 +0900 (JST)
Subject: [ruby-changes:60252] 648eb31b9a (master): Reset Reline.point

https://git.ruby-lang.org/ruby.git/commit/?id=648eb31b9a

From 648eb31b9ae1c8adc0acaf192ba1d033d16a308b Mon Sep 17 00:00:00 2001
From: Koichi Sasada <ko1@a...>
Date: Mon, 2 Mar 2020 14:42:33 +0900
Subject: Reset Reline.point

TestRelineAsReadline#test_insert_text expects Readline.point == 0
at the beginning of the test, but a test violate this assumption.

diff --git a/test/reline/test_within_pipe.rb b/test/reline/test_within_pipe.rb
index 11c3c0e..46b4465 100644
--- a/test/reline/test_within_pipe.rb
+++ b/test/reline/test_within_pipe.rb
@@ -13,6 +13,7 @@ class Reline::WithinPipeTest < Reline::TestCase https://github.com/ruby/ruby/blob/trunk/test/reline/test_within_pipe.rb#L13
   def teardown
     Reline.input = STDIN
     Reline.output = STDOUT
+    Reline.point = 0
     @reader.close
     @writer.close
     @output.close
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]