about summary refs log tree commit diff stats
path: root/text_tests.lua
diff options
context:
space:
mode:
Diffstat (limited to 'text_tests.lua')
-rw-r--r--text_tests.lua10
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}