make tests green
This commit is contained in:
parent
3ba34f1762
commit
30823c1ce3
44 changed files with 415 additions and 403 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue