diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-08-19 17:05:41 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-08-19 17:05:41 -0700 |
commit | 13f67fa851acdba4563d0dca24701c5f97a6a55f (patch) | |
tree | 6d2f4fc01284104d3713b5acbca8cb43a00906a0 /main_tests.lua | |
parent | cbd8f678d226170047405982e94751eeb71cc696 (diff) | |
download | lines.love-13f67fa851acdba4563d0dca24701c5f97a6a55f.tar.gz |
regression: dropping files on the window
Also improve the test to catch this next time.
Diffstat (limited to 'main_tests.lua')
-rw-r--r-- | main_tests.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main_tests.lua b/main_tests.lua index b89c634..31605f0 100644 --- a/main_tests.lua +++ b/main_tests.lua @@ -19,6 +19,7 @@ end function test_drop_file() io.write('\ntest_drop_file') App.screen.init{width=Editor_state.left+300, height=300} + Editor_state = edit.initialize_test_state() App.filesystem['foo'] = 'abc\ndef\nghi\n' local fake_dropped_file = { opened = false, @@ -41,6 +42,7 @@ function test_drop_file() check_eq(Editor_state.lines[1].data, 'abc', 'F - test_drop_file/lines:1') check_eq(Editor_state.lines[2].data, 'def', 'F - test_drop_file/lines:2') check_eq(Editor_state.lines[3].data, 'ghi', 'F - test_drop_file/lines:3') + edit.draw(Editor_state) end function test_drop_file_saves_previous() |