1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Add assertions for Reline.point

https://github.com/ruby/reline/commit/a8c7b207f0
This commit is contained in:
aycabta 2021-10-11 17:16:31 +09:00 committed by git
parent 706239fcc1
commit 60d20e3537

View file

@ -247,12 +247,10 @@ class Reline::Test < Reline::TestCase
def test_insert_text def test_insert_text
assert_equal('', Reline.line_buffer) assert_equal('', Reline.line_buffer)
assert_equal(0, Reline.point)
Reline.insert_text('abc') Reline.insert_text('abc')
assert_equal('abc', Reline.line_buffer) assert_equal('abc', Reline.line_buffer)
end assert_equal(3, Reline.point)
def test_point
# TODO
end end
def test_input= def test_input=