From 4c9856b6876f10a6104761781571a9b7e502561d Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 26 Jun 2019 16:24:17 -0400 Subject: Updated tests for networking Updated some of the unit tests to reflect the new networking api --- spec/test1_spec.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'spec/test1_spec.lua') 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() -- cgit v1.2.3-70-g09d2