about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-09 08:27:27 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-09 08:27:27 -0700
commit31266e23f5bbdf5887303bbcc0f69246e6e45f57 (patch)
tree03de290329f419e3b7b5df12c2ee3d528949cf2f
parent87ea2af2dabb2dca7908a4c0dd73305103849472 (diff)
downloadtext.love-31266e23f5bbdf5887303bbcc0f69246e6e45f57.tar.gz
reorder
-rw-r--r--app.lua22
1 files changed, 11 insertions, 11 deletions
diff --git a/app.lua b/app.lua
index 8a7e0b2..03bc4de 100644
--- a/app.lua
+++ b/app.lua
@@ -273,17 +273,6 @@ end
 -- various Lua and LÖVE helpers, tests will be able to check the results of
 -- file operations inside the App.filesystem table.
 
-function App.open_for_writing(filename)
-  App.filesystem[filename] = ''
-  return {
-    write = function(self, s)
-              App.filesystem[filename] = App.filesystem[filename]..s
-            end,
-    close = function(self)
-            end,
-  }
-end
-
 function App.open_for_reading(filename)
   if App.filesystem[filename] then
     return {
@@ -299,6 +288,17 @@ function App.open_for_reading(filename)
   end
 end
 
+function App.open_for_writing(filename)
+  App.filesystem[filename] = ''
+  return {
+    write = function(self, s)
+              App.filesystem[filename] = App.filesystem[filename]..s
+            end,
+    close = function(self)
+            end,
+  }
+end
+
 function App.mkdir(dirname)
   -- nothing in test mode
 end