summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-08-13 11:41:33 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-08-13 11:41:33 +0200
commitdae5450947e93e2e5222ae2710874186bf27bf39 (patch)
treeddb9da438bb516d81491af41ef646abf34d67406 /tests
parent32afc1a562579d38e82ebb385186767dfb1bc3c8 (diff)
downloadNim-dae5450947e93e2e5222ae2710874186bf27bf39.tar.gz
WIP: disallow 'nil' for strings and seqs
Diffstat (limited to 'tests')
-rw-r--r--tests/async/tasync_misc.nim3
-rw-r--r--tests/async/tasyncssl.nim4
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/async/tasync_misc.nim b/tests/async/tasync_misc.nim
index 695dcd98a..dbc2ea434 100644
--- a/tests/async/tasync_misc.nim
+++ b/tests/async/tasync_misc.nim
@@ -37,8 +37,7 @@ block: #8399
       case line[0]
       of '+', '-': @[]
       of '$': (let x = await bar(); @[""])
-      else:
-        nil
+      else: @[]
 
     doAssert(res == @[""])
 
diff --git a/tests/async/tasyncssl.nim b/tests/async/tasyncssl.nim
index 3dc131036..0607cf3c6 100644
--- a/tests/async/tasyncssl.nim
+++ b/tests/async/tasyncssl.nim
@@ -15,11 +15,11 @@ when defined(ssl):
   var clientCount = 0
 
   proc sendMessages(client: AsyncSocket) {.async.} =
-    for i in 0 .. <messagesToSend:
+    for i in 0 ..< messagesToSend:
       await send(client, "Message " & $i & "\c\L")
 
   proc launchSwarm(port: Port) {.async.} =
-    for i in 0 .. <swarmSize:
+    for i in 0 ..< swarmSize:
       var sock = newAsyncSocket()
       var clientContext = newContext(verifyMode = CVerifyNone)
       clientContext.wrapSocket(sock)