diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-06-05 09:50:19 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-06-05 09:51:54 -0700 |
commit | e7a985bd0a02a1b443cb89ca5ce09506f18a870f (patch) | |
tree | 98fd5c801057f123d420f8a5ef597dd3890d509e /text_tests.lua | |
parent | de473046bc6ad8b33e57399e662b271cd2f8cc44 (diff) | |
download | lines.love-e7a985bd0a02a1b443cb89ca5ce09506f18a870f.tar.gz |
bugfix in previous commit
I almost pushed this to production. That would have been catastrophic; the very first keystroke anyone typed into the editor would have failed. And in the process, this fixes the next bug on my TODO list! Paste on first line wasn't working. Now it is.
Diffstat (limited to 'text_tests.lua')
-rw-r--r-- | text_tests.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/text_tests.lua b/text_tests.lua index c11ef6e..ae7e794 100644 --- a/text_tests.lua +++ b/text_tests.lua @@ -1,6 +1,16 @@ -- major tests for text editing flows -- This still isn't quite as thorough as I'd like. +function test_insert_first_character() + io.write('\ntest_insert_first_character') + App.screen.init{width=120, height=60} + Lines = load_array{} + App.draw() + App.run_after_textinput('a') + local y = Margin_top + App.screen.check(y, 'a', 'F - test_insert_first_character/screen:1') +end + function test_draw_text() io.write('\ntest_draw_text') App.screen.init{width=120, height=60} |