summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-05-16 18:25:56 +0900
committeraycabta <aycabta@gmail.com>2020-05-17 19:26:53 +0900
commit9f18b139c9d93c0bcfdc4f4e502ab024c4212fc0 (patch)
treed3b0283ddad071c5c3b125790d6d4e815800bc1c /test
parentf56e05fa7db740a0d35778b00c8f6a78f6acacac (diff)
[ruby/reline] Add a test of autowrap for yamatanooroti
https://github.com/ruby/reline/commit/38676ba8c2
Diffstat (limited to 'test')
-rw-r--r--test/reline/yamatanooroti/test_rendering.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/reline/yamatanooroti/test_rendering.rb b/test/reline/yamatanooroti/test_rendering.rb
index 4eab6661d6..907ad58ab1 100644
--- a/test/reline/yamatanooroti/test_rendering.rb
+++ b/test/reline/yamatanooroti/test_rendering.rb
@@ -34,6 +34,16 @@ begin
prompt>
EOC
end
+
+ def test_autowrap
+ write('01234567890123456789012')
+ close
+ assert_screen(<<~EOC)
+ Multiline REPL.
+ prompt> 0123456789012345678901
+ 2
+ EOC
+ end
end
rescue LoadError, NameError
# On Ruby repository, this test suit doesn't run because Ruby repo doesn't