diff options
author | patrick dw <algorithicimperative@gmail.com> | 2015-06-19 01:34:34 -0500 |
---|---|---|
committer | patrick dw <algorithicimperative@gmail.com> | 2015-06-19 01:34:34 -0500 |
commit | 69e15ac32fd92abe1d950275ab4b0d830d8b13e1 (patch) | |
tree | 5075b3b8a5ab2458a3bd23a652c31419c41bba32 /tests/overflw | |
parent | b6252af5c6ce99c6eaec91fb5570143151660b74 (diff) | |
download | Nim-69e15ac32fd92abe1d950275ab4b0d830d8b13e1.tar.gz |
renamed writeln to writeLine in tests
Diffstat (limited to 'tests/overflw')
-rw-r--r-- | tests/overflw/toverflw.nim | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/overflw/toverflw.nim b/tests/overflw/toverflw.nim index fbe0d0a38..771a43303 100644 --- a/tests/overflw/toverflw.nim +++ b/tests/overflw/toverflw.nim @@ -2,20 +2,20 @@ discard """ file: "toverflw.nim" output: "the computation overflowed" """ -# Tests nim's ability to detect overflows - -{.push overflowChecks: on.} - -var - a, b: int -a = high(int) -b = -2 -try: - writeln(stdout, b - a) -except OverflowError: - writeln(stdout, "the computation overflowed") - -{.pop.} # overflow check -#OUT the computation overflowed +# Tests nim's ability to detect overflows + +{.push overflowChecks: on.} + +var + a, b: int +a = high(int) +b = -2 +try: + writeLine(stdout, b - a) +except OverflowError: + writeLine(stdout, "the computation overflowed") + +{.pop.} # overflow check +#OUT the computation overflowed |