aboutsummaryrefslogtreecommitdiff
path: root/spec/test1_spec.lua
diff options
context:
space:
mode:
authorAlexander <alex@cogarr.net>2019-06-26 16:24:17 -0400
committerAlexander <alex@cogarr.net>2019-06-26 16:24:17 -0400
commit4c9856b6876f10a6104761781571a9b7e502561d (patch)
tree5d741f725dd722fb9470951f67a6735636068fc4 /spec/test1_spec.lua
parentd5cd0c7b4425e25b11a1ceec154a5c752d508a42 (diff)
downloadbrokengine-4c9856b6876f10a6104761781571a9b7e502561d.tar.gz
brokengine-4c9856b6876f10a6104761781571a9b7e502561d.tar.bz2
brokengine-4c9856b6876f10a6104761781571a9b7e502561d.zip
Updated tests for networking
Updated some of the unit tests to reflect the new networking api
Diffstat (limited to 'spec/test1_spec.lua')
-rw-r--r--spec/test1_spec.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/test1_spec.lua b/spec/test1_spec.lua
index bcb5756..9844204 100644
--- a/spec/test1_spec.lua
+++ b/spec/test1_spec.lua
@@ -9,7 +9,10 @@ end
function writegame(...)
f = io.open("spec/headless/init.lua","w")
- data = {...}
+ data = {"GAME.crashy()"}
+ for _,v in pairs({...}) do
+ data[#data + 1] = v
+ end
data[#data + 1] = "\nGAME.exit()\n"
f:write(table.concat(data))
f:close()