diff options
author | Araq <rumpf_a@web.de> | 2012-01-06 00:29:18 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-06 00:29:18 +0100 |
commit | 071b1e395719b18f3a2d9a96dc126cfbbabf05f6 (patch) | |
tree | 359165d02ead485b2b0d406de264a3f177eae77a /tests/reject | |
parent | 8aa4e4670716f04e6029c24b052c09a4a3cc0ae4 (diff) | |
download | Nim-071b1e395719b18f3a2d9a96dc126cfbbabf05f6.tar.gz |
test t99bott.nim works now
Diffstat (limited to 'tests/reject')
-rwxr-xr-x | tests/reject/t99bott.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/reject/t99bott.nim b/tests/reject/t99bott.nim index a4729b985..7d11ba4b0 100755 --- a/tests/reject/t99bott.nim +++ b/tests/reject/t99bott.nim @@ -1,8 +1,8 @@ discard """ file: "t99bott.nim" - line: 25 - errormsg: "constant expression expected" - disabled: true + line: 26 + errormsg: "cannot evaluate 'GetBottleNumber(bn)'" + disabled: false """ ## 99 Bottles of Beer ## http://www.99-bottles-of-beer.net/ @@ -23,7 +23,7 @@ proc GetBottleNumber(n: int): string = return bs & " of beer" for bn in countdown(99, 1): - const cur = GetBottleNumber(bn) #ERROR_MSG constant expression expected + const cur = GetBottleNumber(bn) echo(cur, " on the wall, ", cur, ".") echo("Take one down and pass it around, ", GetBottleNumber(bn-1), " on the wall.\n") |