For commit ff88a2a927 which fixed a regression caused by commit
e51ce12969.

I'm trying to provide enough guardrails for myself and future readers
without causing a combinatorial explosion in tests. The previous commit
was able to get more value out of existing tests, but this test feels
necessary. And useful in general without reference to a specific bug.
This commit is contained in:
Kartik K. Agaram 2022-06-12 10:19:06 -07:00
parent 059efba79d
commit 4f64784833
1 changed files with 12 additions and 0 deletions

View File

@ -11,6 +11,18 @@ function test_insert_first_character()
App.screen.check(y, 'a', 'F - test_insert_first_character/screen:1')
end
function test_press_ctrl()
io.write('\ntest_press_ctrl')
-- press ctrl while the cursor is on text
App.screen.init{width=50, height=80}
Lines = load_array{''}
Line_width = App.screen.width
Cursor1 = {line=1, pos=1}
Screen_top1 = {line=1, pos=1}
Screen_bottom1 = {}
App.run_after_keychord('C-m')
end
function test_draw_text()
io.write('\ntest_draw_text')
App.screen.init{width=120, height=60}