make tests green

This commit is contained in:
Araq 2014-08-31 15:15:26 +02:00
commit 30823c1ce3
44 changed files with 415 additions and 403 deletions

View file

@ -1,6 +1,6 @@
discard """
file: "tfloat1.nim"
outputsub: "Error: unhandled exception: FPU operation caused an overflow [EFloatOverflow]"
outputsub: "Error: unhandled exception: FPU operation caused an overflow [FloatOverflowError]"
exitcode: "1"
"""
# Test new floating point exceptions
@ -10,6 +10,6 @@ discard """
var x = 0.8
var y = 0.0
echo x / y #OUT Error: unhandled exception: FPU operation caused an overflow [EFloatOverflow]
echo x / y #OUT Error: unhandled exception: FPU operation caused an overflow

View file

@ -1,6 +1,6 @@
discard """
file: "tfloat2.nim"
outputsub: "Error: unhandled exception: FPU operation caused a NaN result [EFloatInvalidOp]"
outputsub: "Error: unhandled exception: FPU operation caused a NaN result [FloatInvalidOpError]"
exitcode: "1"
"""
# Test new floating point exceptions
@ -10,6 +10,6 @@ discard """
var x = 0.0
var y = 0.0
echo x / y #OUT Error: unhandled exception: FPU operation caused a NaN result [EFloatInvalidOp]
echo x / y #OUT Error: unhandled exception: FPU operation caused a NaN result

View file

@ -13,7 +13,7 @@ void printFloats(void) {
}
""".}
proc c_printf(frmt: CString) {.importc: "printf", header: "<stdio.h>", varargs.}
proc c_printf(frmt: cstring) {.importc: "printf", header: "<stdio.h>", varargs.}
proc printFloats {.importc, nodecl.}
var x: float = 1.234567890123456789