Merge text.love
[?]
Aug 26, 2023, 11:04 PM
KRLRRLVGMTN66AWJ3EB6P6ZLFSGVBMMGACA7I4FXCGVRNTKOYV7ACDependencies
- [2]
QD4LOFQRMerge text.love - [3]
PWTRH67VMerge lines.love - [4]
ECBDENZ4Merge text.love - [5]
A4BSGS2CMerge lines.love - [6]
JMUD7T3Oget rid of ugly side-effects in tests - [7]
AVTNUQYRbasic test-enabled framework - [8]
4KC7I3E2make colors easier to edit - [9]
2CTN2IEFMerge lines.love - [10]
ZLJYLPOTMerge lines.love - [11]
CUFW4EJLreorganize app.lua and its comments - [12]
36Z442IVback to commit 8123959e52f without code editing - [13]
YTSPVDZHfirst successful pagedown test, first bug found by test - [14]
MDXGMZU2disable all debug prints - [15]
JCXL74WVbring back everything from commit a68647ae22 - [16]
CA5T33FGone more implication - [17]
JOPVPUSAediting source code from within the app - [18]
3QWK3GSAsupport mouse clicks in file navigator - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in app.lua at line 58
- resurrect zombie in app.lua at line 59
App = {} - resolve order conflict in app.lua at line 59
- edit in app.lua at line 60
- edit in app.lua at line 73
- resolve order conflict in app.lua at line 73
- edit in app.lua at line 93
- edit in app.lua at line 116
-- operations on the LÖVE window within the monitor/display - resurrect zombie in app.lua at line 136
-- If you use App.screen.print instead of love.graphics.print,-- tests will be able to check what was printed using App.screen.check below.---- One drawback of this approach: the y coordinate used depends on font size,-- which feels brittle. - resolve order conflict in app.lua at line 136
- edit in app.lua at line 155
end - resurrect zombie in app.lua at line 155
end - edit in app.lua at line 157
function colortable(app_color)return {app_color.r, app_color.g, app_color.b, app_color.a} - resurrect zombie in app.lua at line 157[4.1287]→[4.1739:2154](∅→∅),[4.1287]→[4.1739:2154](∅→∅),[4.387]→[4.2155:2332](∅→∅),[4.387]→[4.2155:2332](∅→∅)
function App.screen.check(y, expected_contents, msg)--? print('checking for "'..expected_contents..'" at y '..tostring(y))local screen_row = 'y'..tostring(y)local contents = ''if App.screen.contents[screen_row] == nil thenerror('no text at y '..tostring(y))endfor i,s in ipairs(App.screen.contents[screen_row]) docontents = contents..sendcheck_eq(contents, expected_contents, msg)-- If you access the time using App.getTime instead of love.timer.getTime,-- tests will be able to move the time back and forwards as needed using-- App.wait_fake_time below. - resolve order conflict in app.lua at line 157
- edit in app.lua at line 168
end