Merge text0
[?]
Aug 26, 2023, 11:16 PM
4NFSODHHLYE7XW5PCHGTVUXDYURCACP6VUKQRD5ARA5BHNKDBLKACDependencies
- [2]
JOLUCIT6consistently save/restore state when running tests - [3]
NSHI3CH5Merge text0 - [4]
THJX6RCJMerge text0 - [5]
H7WUFI5Vfix method name in documentation - [6]
27GDAM5Jcorrect various names in this and other pre-freewheeling forks - [7]
KRLRRLVGMerge text.love - [8]
7CLGG7J2test: autosave after any shape - [9]
FCFJVYKYredundant check - [10]
N2NUGNN4include a brief reference enabling many useful apps - [11]
IMEJA43Lsnapshot - [12]
KKMFQDR4editing source code from within the app - [13]
JCXL74WVbring back everything from commit a68647ae22 - [14]
D76AELSVdeduplicate an initialization - [15]
4EGQRXDAbugfix: naming points - [16]
DLBD4ZA6wait, fix tests - [17]
3ZTODUBQformatting - [18]
AD34IX2Zcouple more tests - [19]
2NTKHMLGconfigurable error handler when running tests - [20]
CUFW4EJLreorganize app.lua and its comments - [21]
CZQ3NJ4NMerge text0 - [22]
D5J7IZADdebug helper: run a single test - [23]
AVTNUQYRbasic test-enabled framework - [24]
Q7HDVBN7keep some prints in the terminal for now - [25]
5ZCQGZP5save 2 more alternate formats for test failures - [26]
LYIV4YOLmake run_test look like run_tests - [27]
ORRSP7FVdeduce test names on failures - [28]
3QMTXKWNrename - [29]
6RYLD5ONchange how we handle clicks above top margin - [30]
BC4SO6ARclean up a print - [31]
2CTN2IEFMerge lines.love - [32]
UFOVVX3ZMerge text0 - [33]
NR43TWCNmake App.open_for_* look more like io.open - [34]
ECBDENZ4Merge text.love - [35]
PWTRH67VMerge lines.love - [36]
JNJ4R56Xsupport running tests multiple times - [37]
YJVVEZFJstop printing tests on terminal - [38]
QD4LOFQRMerge text.love - [39]
JOPVPUSAediting source code from within the app - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- resurrect zombie in reference.md at line 67
* `on.update(dt)` -- called after every call to `on.draw`. Make changes to - edit in reference.md at line 67
<<<<<<< HEAD - resolve order conflict in reference.md at line 69[4.1668]
- edit in reference.md at line 69
your app's variables here rather than in `on.draw`. Provides in `dt` thetime since the previous call to `on.update`, which can be useful for things======= - edit in reference.md at line 75
>>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c - resurrect zombie in reference.md at line 87
* `on.mouse_release(x,y, mouse_button)` -- called when you release a mouse - edit in reference.md at line 87
<<<<<<< HEAD - resurrect zombie in reference.md at line 89
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
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
>>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c - edit in reference.md at line 117
<<<<<<< HEAD - resolve order conflict in reference.md at line 119[4.2498]
- edit in reference.md at line 119
======= - edit in reference.md at line 121
>>>>>>> e7085e1e17e84291ef4d990708790ca899fb5c3c - replacement in app.lua at line 134
function App.run_tests()function App.run_tests(record_error_fn) - edit in app.lua at line 142
local globals = App.shallow_copy_all_globals()App = App_for_testslocal saved_font = love.graphics.getFont()love.graphics.setFont(Love_snapshot.initial_font) - replacement in app.lua at line 149
--? _G[name]()xpcall(_G[name], function(err) prepend_debug_info_to_test_failure(name, err) end)xpcall(_G[name], function(err) record_error_fn(name, err) end) - replacement in app.lua at line 151
-- clean up all test methodsfor _,name in ipairs(sorted_names) do_G[name] = nilendlove.graphics.setFont(saved_font)-- restore all global state except Test_errorslocal test_errors = Test_errorsApp.restore_all_globals(globals)Test_errors = test_errors - edit in app.lua at line 158
function App.run_test(test, record_error_fn)local globals = App.shallow_copy_all_globals()App = App_for_testslocal 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_errorslocal test_errors = Test_errorsApp.restore_all_globals(globals)Test_errors = test_errorsend - 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](∅→∅)
endfunction App.run_tests(record_error_fn)local globals = App.shallow_copy_all_globals()App = App_for_testslocal 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_errorslocal test_errors = Test_errorsApp.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_testslocal 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_errorslocal test_errors = Test_errorsApp.restore_all_globals(globals)Test_errors = test_errorsfunction colortable(app_color)return {app_color.r, app_color.g, app_color.b, app_color.a} - edit in app.lua at line 444
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