summary refs log tree commit diff stats
path: root/tests/manyloc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-01-15 14:44:54 +0100
committerAndreas Rumpf <rumpf_a@web.de>2016-01-15 14:44:54 +0100
commit0d4e52c648a5e104393b634552b8a0cd4f46c4d0 (patch)
tree965dbbaf9c7277533d4b3472610babc017d2ff39 /tests/manyloc
parent46f1f41cc94fae52d26bf49e2b6eb74987857d9a (diff)
downloadNim-0d4e52c648a5e104393b634552b8a0cd4f46c4d0.tar.gz
makes tests green
Diffstat (limited to 'tests/manyloc')
-rw-r--r--tests/manyloc/keineschweine/dependencies/genpacket/genpacket_enet.nim2
-rw-r--r--tests/manyloc/keineschweine/lib/client_helpers.nim2
-rw-r--r--tests/manyloc/keineschweine/lib/sg_assets.nim4
-rw-r--r--tests/manyloc/nake/nakefile.nim2
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/manyloc/keineschweine/dependencies/genpacket/genpacket_enet.nim b/tests/manyloc/keineschweine/dependencies/genpacket/genpacket_enet.nim
index 7cfd67c49..e64b818fa 100644
--- a/tests/manyloc/keineschweine/dependencies/genpacket/genpacket_enet.nim
+++ b/tests/manyloc/keineschweine/dependencies/genpacket/genpacket_enet.nim
@@ -277,7 +277,7 @@ when isMainModule:
   s.flush
 
   defPacket(Y, tuple[z: int8])
-  proc `$`(z: Y): string = result = "Y("& $z.z &")"
+  proc `$`(z: Y): string = result = "Y(" & $z.z & ")"
   defPacket(TestPkt, tuple[x: seq[Y]])
   var test = newTestPkt()
   test.x.add([newY(5), newY(4), newY(3), newY(2), newY(1)])
diff --git a/tests/manyloc/keineschweine/lib/client_helpers.nim b/tests/manyloc/keineschweine/lib/client_helpers.nim
index f2833fe14..5f819a7d1 100644
--- a/tests/manyloc/keineschweine/lib/client_helpers.nim
+++ b/tests/manyloc/keineschweine/lib/client_helpers.nim
@@ -66,7 +66,7 @@ proc handlePackets*(server: PServer; buf: PBuffer) =
 proc updateFileProgress*() =
   let progress = currentFileTransfer.pos / currentFileTransfer.fullLen
   downloadProgress.bg.setSize(vec2f(progress * 100, 20))
-  downloadProgress.setString($currentFileTransfer.pos &'/'& $currentFileTransfer.fullLen)
+  downloadProgress.setString($currentFileTransfer.pos & '/' & $currentFileTransfer.fullLen)
 
 ## HFileTransfer
 proc handleFilePartRecv*(serv: PServer; buffer: PBuffer) {.procvar.} =
diff --git a/tests/manyloc/keineschweine/lib/sg_assets.nim b/tests/manyloc/keineschweine/lib/sg_assets.nim
index 3b9781649..801c3456b 100644
--- a/tests/manyloc/keineschweine/lib/sg_assets.nim
+++ b/tests/manyloc/keineschweine/lib/sg_assets.nim
@@ -573,13 +573,13 @@ proc importItem(data: PJsonNode; errors: var seq[string]): PItemRecord =
     elif data[2]["bullet"].kind == JObject:
       result.bullet = importBullet(data[2]["bullet"], errors)
     else:
-      errors.add "UNKNOWN BULLET TYPE for item "& result.name
+      errors.add "UNKNOWN BULLET TYPE for item " & result.name
   of "ammo":
     result.kind = Ammo
   of "utility":
     nil
   else:
-    errors.add "Invalid item type \""& data[1].str &"\" for item "& result.name
+    errors.add "Invalid item type \""&data[1].str&"\" for item "&result.name
 
 proc importBullet(data: PJsonNode; errors: var seq[string]): PBulletRecord =
   new(result)
diff --git a/tests/manyloc/nake/nakefile.nim b/tests/manyloc/nake/nakefile.nim
index de6a1af40..e91b86986 100644
--- a/tests/manyloc/nake/nakefile.nim
+++ b/tests/manyloc/nake/nakefile.nim
@@ -146,7 +146,7 @@ task "download", "download game assets":
 
 task "zip-lib", "zip up the libs dir":
   var z: TZipArchive
-  if not z.open("libs-"& getDateStr() &".zip", fmReadWrite):
+  if not z.open("libs-" & getDateStr() & ".zip", fmReadWrite):
     quit "Could not open zip"
   for file in walkDirRec("libs", {pcFile, pcDir}):
     echo "adding file ", file