diff options
Diffstat (limited to 'tests/float/tfloatrange.nim')
-rw-r--r-- | tests/float/tfloatrange.nim | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/float/tfloatrange.nim b/tests/float/tfloatrange.nim index e8ea1912e..d345166f4 100644 --- a/tests/float/tfloatrange.nim +++ b/tests/float/tfloatrange.nim @@ -1,5 +1,6 @@ discard """ cmd: "nim c -d:release --rangeChecks:on $file" + disabled: "windows" output: '''StrictPositiveRange float range fail expected @@ -33,11 +34,11 @@ try: myoverload(StrictPositive(z)) except: echo "range fail expected" - - + + proc strictOnlyProc(x: StrictPositive): bool = if x > 1.0: true else: false - + let x2 = 5.0.Positive doAssert(strictOnlyProc(x2)) @@ -46,4 +47,4 @@ try: discard strictOnlyProc(x4) except: echo "range fail expected" - \ No newline at end of file + |