Sugar Assert fix

This commit is contained in:
Aayush Ranaut 2015-10-07 21:19:50 -04:00
parent 83a229e3f5
commit 087bc761d5

View File

@ -235,7 +235,7 @@ proc ask(question: string): Answer =
else: echo("Please be clear: yes or no") else: echo("Please be clear: yes or no")
proc addSugar(amount: int = 2) = # Default amount is 2, returns nothing proc addSugar(amount: int = 2) = # Default amount is 2, returns nothing
assert(amount > 0 or amount < 9000, "Crazy Sugar") assert(amount > 0 and amount < 9000, "Crazy Sugar")
for a in 1..amount: for a in 1..amount:
echo(a, " sugar...") echo(a, " sugar...")