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:
parent
706239fcc1
commit
60d20e3537
1 changed files with 2 additions and 4 deletions
|
@ -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=
|
||||||
|
|
Loading…
Reference in a new issue