the test suite is mostly green again

This commit is contained in:
Zahary Karadjov 2012-03-16 05:33:21 +02:00
commit 72f2a6e275
19 changed files with 46 additions and 67 deletions

View file

@ -1,6 +1,6 @@
# All and any
template all(container, cond: expr): expr =
template all(container, cond: expr): expr {.immediate.} =
block:
var result = true
for it in items(container):
@ -9,7 +9,7 @@ template all(container, cond: expr): expr =
break
result
template any(container, cond: expr): expr =
template any(container, cond: expr): expr {.immediate.} =
block:
var result = false
for it in items(container):