зеркало из https://github.com/github/ruby.git
[ruby/reline] Add assertions for Reline.point
https://github.com/ruby/reline/commit/a8c7b207f0
This commit is contained in:
Родитель
706239fcc1
Коммит
60d20e3537
|
@ -247,12 +247,10 @@ class Reline::Test < Reline::TestCase
|
|||
|
||||
def test_insert_text
|
||||
assert_equal('', Reline.line_buffer)
|
||||
assert_equal(0, Reline.point)
|
||||
Reline.insert_text('abc')
|
||||
assert_equal('abc', Reline.line_buffer)
|
||||
end
|
||||
|
||||
def test_point
|
||||
# TODO
|
||||
assert_equal(3, Reline.point)
|
||||
end
|
||||
|
||||
def test_input=
|
||||
|
|
Загрузка…
Ссылка в новой задаче