Merge text0

[?]
Aug 26, 2023, 11:16 PM
4NFSODHHLYE7XW5PCHGTVUXDYURCACP6VUKQRD5ARA5BHNKDBLKAC

Dependencies

  • [2] JOLUCIT6 consistently save/restore state when running tests
  • [3] NSHI3CH5 Merge text0
  • [4] THJX6RCJ Merge text0
  • [5] H7WUFI5V fix method name in documentation
  • [6] 27GDAM5J correct various names in this and other pre-freewheeling forks
  • [7] KRLRRLVG Merge text.love
  • [8] 7CLGG7J2 test: autosave after any shape
  • [9] FCFJVYKY redundant check
  • [10] N2NUGNN4 include a brief reference enabling many useful apps
  • [11] IMEJA43L snapshot
  • [12] KKMFQDR4 editing source code from within the app
  • [13] JCXL74WV bring back everything from commit a68647ae22
  • [14] D76AELSV deduplicate an initialization
  • [15] 4EGQRXDA bugfix: naming points
  • [16] DLBD4ZA6 wait, fix tests
  • [17] 3ZTODUBQ formatting
  • [18] AD34IX2Z couple more tests
  • [19] 2NTKHMLG configurable error handler when running tests
  • [20] CUFW4EJL reorganize app.lua and its comments
  • [21] CZQ3NJ4N Merge text0
  • [22] D5J7IZAD debug helper: run a single test
  • [23] AVTNUQYR basic test-enabled framework
  • [24] Q7HDVBN7 keep some prints in the terminal for now
  • [25] 5ZCQGZP5 save 2 more alternate formats for test failures
  • [26] LYIV4YOL make run_test look like run_tests
  • [27] ORRSP7FV deduce test names on failures
  • [28] 3QMTXKWN rename
  • [29] 6RYLD5ON change how we handle clicks above top margin
  • [30] BC4SO6AR clean up a print
  • [31] 2CTN2IEF Merge lines.love
  • [32] UFOVVX3Z Merge text0
  • [33] NR43TWCN make App.open_for_* look more like io.open
  • [34] ECBDENZ4 Merge text.love
  • [35] PWTRH67V Merge lines.love
  • [36] JNJ4R56X support running tests multiple times
  • [37] YJVVEZFJ stop printing tests on terminal
  • [38] QD4LOFQR Merge text.love
  • [39] JOPVPUSA editing source code from within the app
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • resurrect zombie in reference.md at line 67
    [8.2384][4.1593:1668](),[8.2384][4.1593:1668]()
    * `on.update(dt)` -- called after every call to `on.draw`. Make changes to
  • edit in reference.md at line 67
    [8.2384]
    [4.1593]
    <<<<<<< HEAD
  • resolve order conflict in reference.md at line 69
    [4.1668]
  • edit in reference.md at line 69
    [0.23]
    [6.35]
    your app's variables here rather than in `on.draw`. Provides in `dt` the
    time since the previous call to `on.update`, which can be useful for things
    =======
  • edit in reference.md at line 75
    [6.267]
    [8.2613]
    >>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c
  • resurrect zombie in reference.md at line 87
    [8.3222][4.1903:1978](),[8.3222][4.1903:1978]()
    * `on.mouse_release(x,y, mouse_button)` -- called when you release a mouse
  • edit in reference.md at line 87
    [8.3222]
    [4.1903]
    <<<<<<< HEAD
  • resurrect zombie in reference.md at line 89
    [8.3298][6.268:337](),[8.3298][6.268:337]()
    button. Provides the same arguments as `App.mousepressed()` above.
  • resolve order conflict in reference.md at line 89
    [4.1978]
  • edit in reference.md at line 89
    [0.251]
    [6.268]
    button. Provides the same arguments as `on.mouse_press()` above.
    =======
    * `App.mousereleased(x,y, mouse_button)` -- called when you release a mouse
  • edit in reference.md at line 93
    [6.337]
    [8.3365]
    >>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c
  • edit in reference.md at line 117
    [8.4583]
    [4.2426]
    <<<<<<< HEAD
  • resolve order conflict in reference.md at line 119
    [4.2498]
  • edit in reference.md at line 119
    [0.469]
    [5.18]
    =======
  • edit in reference.md at line 121
    [5.91]
    [8.4655]
    >>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c
  • replacement in app.lua at line 134
    [8.4492][7.21:21](),[7.21][8.640:665](),[8.36][8.640:665](),[8.210403][8.640:665]()
    function App.run_tests()
    [8.4492]
    [8.665]
    function App.run_tests(record_error_fn)
  • edit in app.lua at line 142
    [8.842]
    [8.842]
    local globals = App.shallow_copy_all_globals()
    App = App_for_tests
    local saved_font = love.graphics.getFont()
    love.graphics.setFont(Love_snapshot.initial_font)
  • replacement in app.lua at line 149
    [8.940][8.940:1045]()
    --? _G[name]()
    xpcall(_G[name], function(err) prepend_debug_info_to_test_failure(name, err) end)
    [8.940]
    [8.1045]
    xpcall(_G[name], function(err) record_error_fn(name, err) end)
  • replacement in app.lua at line 151
    [8.1051][8.1051:1147]()
    -- clean up all test methods
    for _,name in ipairs(sorted_names) do
    _G[name] = nil
    end
    [8.1051]
    [8.1147]
    love.graphics.setFont(saved_font)
    -- restore all global state except Test_errors
    local test_errors = Test_errors
    App.restore_all_globals(globals)
    Test_errors = test_errors
  • edit in app.lua at line 158
    [8.1152]
    [7.22]
    function App.run_test(test, record_error_fn)
    local globals = App.shallow_copy_all_globals()
    App = App_for_tests
    local saved_font = love.graphics.getFont()
    love.graphics.setFont(Love_snapshot.initial_font)
    App.initialize_for_test()
    xpcall(test, function(err) record_error_fn('', err) end)
    love.graphics.setFont(saved_font)
    -- restore all global state except Test_errors
    local test_errors = Test_errors
    App.restore_all_globals(globals)
    Test_errors = test_errors
    end
  • edit in app.lua at line 419
    [8.541][8.1467:1472](),[8.5233][8.1467:1472](),[8.1467][8.1467:1472](),[8.7396][8.73:113](),[8.7396][8.73:113](),[8.8001][2.18:67](),[8.8001][2.18:67](),[2.67][8.1959:1981](),[8.1959][8.1959:1981](),[8.1959][8.1959:1981](),[8.1981][2.68:165](),[8.1981][2.68:165](),[8.47][8.1966:1994](),[8.47][8.1966:1994](),[8.1994][3.21:88](),[8.1994][3.21:88](),[8.7554][2.166:348](),[8.7554][2.166:348]()
    end
    function App.run_tests(record_error_fn)
    local globals = App.shallow_copy_all_globals()
    App = App_for_tests
    local saved_font = love.graphics.getFont()
    love.graphics.setFont(Love_snapshot.initial_font)
    --? print('=== '..name)
    xpcall(_G[name], function(err) record_error_fn(name, err) end)
    love.graphics.setFont(saved_font)
    -- restore all global state except Test_errors
    local test_errors = Test_errors
    App.restore_all_globals(globals)
    Test_errors = test_errors
  • replacement in app.lua at line 421
    [8.41][8.18:63](),[8.63][2.349:398](),[2.398][8.93:115](),[8.93][8.93:115](),[8.115][2.399:769]()
    function App.run_test(test, record_error_fn)
    local globals = App.shallow_copy_all_globals()
    App = App_for_tests
    local saved_font = love.graphics.getFont()
    love.graphics.setFont(Love_snapshot.initial_font)
    App.initialize_for_test()
    xpcall(test, function(err) record_error_fn('', err) end)
    love.graphics.setFont(saved_font)
    -- restore all global state except Test_errors
    local test_errors = Test_errors
    App.restore_all_globals(globals)
    Test_errors = test_errors
    [8.41]
    [2.769]
    function colortable(app_color)
    return {app_color.r, app_color.g, app_color.b, app_color.a}
  • edit in app.lua at line 444
    [8.1472][8.5234:5327]()
    function colortable(app_color)
    return {app_color.r, app_color.g, app_color.b, app_color.a}
  • resolve order conflict in app.lua at line 444
    [2.1126]
    [8.7564]