From 0522c1105fff9bad7fdd592408bc63c1deb76065 Mon Sep 17 00:00:00 2001 From: gmega Date: Fri, 1 Sep 2023 19:40:48 -0300 Subject: [PATCH] fix assert --- swarmsim/lib/tables.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarmsim/lib/tables.nim b/swarmsim/lib/tables.nim index 2215272..86724ed 100644 --- a/swarmsim/lib/tables.nim +++ b/swarmsim/lib/tables.nim @@ -19,7 +19,7 @@ template getDefault*[K, V](self: var Table[K, V], key: K, alias, # like withValue, c is a pointer. c[] += 1 - echo table["hello"] # 2 + doAssert table["hello"] == 2 self.withValue(key, v): var alias {.inject.} = v