Merge text0

[?]
Sep 9, 2023, 4:53 PM
NW6ESVDD7HZTUTHB4XTAC2PYJJDIRKSFTKV4DBWAXKBUGIGBDHUQC

Dependencies

  • [2] NILDKUJV Merge text0
  • [3] 3WL5OW24 yet another bugfix X-(
  • [4] BHVEPXG4 Merge text.love
  • [5] HKV72RZV bugfix: save modified files in save directory
  • [6] 36Z442IV back to commit 8123959e52f without code editing
  • [7] ORRSP7FV deduce test names on failures
  • [8] FQURPLDA new primitives for reading/writing files
  • [9] AQOJ62LN two bugfixes
  • [10] ED4Z6ORC cleaner API for file-system access
  • [11] JCRUUD2S Merge text.love
  • [12] AVTNUQYR basic test-enabled framework
  • [*] 3QNOKBFM beginnings of a test harness

Change contents

  • edit in app.lua at line 80
    [2.273]
    [2.273]
    end
    end
    App.read_file =
    function(path)
    if not is_absolute_path(path) then
    return --[[status]] false, 'Please use an unambiguous absolute path.'
    end
    local f, err = App.open_for_reading(path)
    if err then
    return --[[status]] false, err
  • edit in app.lua at line 91
    [2.285]
    [2.285]
    local contents = f:read()
    f:close()
    return contents
  • edit in app.lua at line 103
    [2.517]
    [2.517]
    end
    end
    App.write_file =
    function(path, contents)
    if not is_absolute_path(path) then
    return --[[status]] false, 'Please use an unambiguous absolute path.'
    end
    local f, err = App.open_for_writing(path)
    if err then
    return --[[status]] false, err
  • edit in app.lua at line 114
    [2.529]
    [2.529]
    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]()
    end
    end
    App.read_file =
    function(path)
    if not is_absolute_path(path) then
    return --[[status]] false, 'Please use an unambiguous absolute path.'
    end
    local f, err = App.open_for_reading(path)
    if err then
    return --[[status]] false, err
    end
    local contents = f:read()
    f:close()
    return contents
    App.write_file =
    function(path, contents)
    if not is_absolute_path(path) then
    return --[[status]] false, 'Please use an unambiguous absolute path.'
    end
    local f, err = App.open_for_writing(path)
    if err then
    return --[[status]] false, err
    end
    f:write(contents)
    f:close()
    return --[[status]] true
    end