include a unit test

[?]
Jun 10, 2022, 1:36 AM
T3B4NLV33PBD2L3YL3MHSOXZUWHDOGHPWLKKKHEBKJFSHYQWUK3AC

Dependencies

Change contents

  • edit in text_tests.lua at line 257
    [2.6255]
    [2.6255]
    function test_cut_without_selection()
    io.write('\ntest_cut_without_selection')
    -- display a few lines
    App.screen.init{width=25+30, height=60}
    Lines = load_array{'abc', 'def', 'ghi', 'jkl'}
    Line_width = App.screen.width
    Cursor1 = {line=1, pos=2}
    Screen_top1 = {line=1, pos=1}
    Screen_bottom1 = {}
    Selection1 = {}
    App.draw()
    -- try to cut without selecting text
    App.run_after_keychord('C-x')
    -- no crash
    check_nil(Selection1.line, 'F - test_cut_without_selection')
    end