Merge text0
[?]
Sep 9, 2023, 4:53 PM
NW6ESVDD7HZTUTHB4XTAC2PYJJDIRKSFTKV4DBWAXKBUGIGBDHUQCDependencies
- [2]
NILDKUJVMerge text0 - [3]
3WL5OW24yet another bugfix X-( - [4]
BHVEPXG4Merge text.love - [5]
HKV72RZVbugfix: save modified files in save directory - [6]
36Z442IVback to commit 8123959e52f without code editing - [7]
ORRSP7FVdeduce test names on failures - [8]
FQURPLDAnew primitives for reading/writing files - [9]
AQOJ62LNtwo bugfixes - [10]
ED4Z6ORCcleaner API for file-system access - [11]
JCRUUD2SMerge text.love - [12]
AVTNUQYRbasic test-enabled framework - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in app.lua at line 80
endendApp.read_file =function(path)if not is_absolute_path(path) thenreturn --[[status]] false, 'Please use an unambiguous absolute path.'endlocal f, err = App.open_for_reading(path)if err thenreturn --[[status]] false, err - edit in app.lua at line 91
local contents = f:read()f:close()return contents - edit in app.lua at line 103
endendApp.write_file =function(path, contents)if not is_absolute_path(path) thenreturn --[[status]] false, 'Please use an unambiguous absolute path.'endlocal f, err = App.open_for_writing(path)if err thenreturn --[[status]] false, err - edit in app.lua at line 114
f:write(contents)f:close()return --[[status]] true - edit in app.lua at line 537[5.16250]→[5.224:246](∅→∅),[5.16250]→[5.224:246](∅→∅),[5.246]→[5.36:54](∅→∅),[5.246]→[5.36:54](∅→∅),[5.54]→[5.259:526](∅→∅),[5.259]→[5.259:526](∅→∅),[5.259]→[5.259:526](∅→∅),[5.526]→[4.17:29](∅→∅),[5.526]→[4.17:29](∅→∅),[4.29]→[5.527:603](∅→∅),[5.636]→[5.527:603](∅→∅),[5.636]→[5.527:603](∅→∅),[5.16494]→[5.55:74](∅→∅),[5.16494]→[5.55:74](∅→∅),[5.74]→[3.36:67](∅→∅),[5.74]→[3.36:67](∅→∅),[3.67]→[5.653:788](∅→∅),[5.653]→[5.653:788](∅→∅),[5.653]→[5.653:788](∅→∅),[5.788]→[3.68:118](∅→∅),[5.788]→[3.68:118](∅→∅),[3.118]→[5.842:959](∅→∅),[5.842]→[5.842:959](∅→∅),[5.842]→[5.842:959](∅→∅),[5.959]→[5.75:108](∅→∅),[5.959]→[5.75:108](∅→∅),[5.108]→[5.959:969](∅→∅),[5.959]→[5.959:969](∅→∅),[5.959]→[5.959:969](∅→∅)
endendApp.read_file =function(path)if not is_absolute_path(path) thenreturn --[[status]] false, 'Please use an unambiguous absolute path.'endlocal f, err = App.open_for_reading(path)if err thenreturn --[[status]] false, errendlocal contents = f:read()f:close()return contentsApp.write_file =function(path, contents)if not is_absolute_path(path) thenreturn --[[status]] false, 'Please use an unambiguous absolute path.'endlocal f, err = App.open_for_writing(path)if err thenreturn --[[status]] false, errendf:write(contents)f:close()return --[[status]] trueend