diff options
author | konsumlamm <44230978+konsumlamm@users.noreply.github.com> | 2021-01-05 20:51:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 20:51:51 +0100 |
commit | 2c2baa9fad1d144c42baf30ed004decdf8bb0483 (patch) | |
tree | 24ceb703c4b27f149b356cd3bb5944b17f3fafa0 /tests | |
parent | c04f305bf791ee5ecfd17f5a40d009d9c6b6f07a (diff) | |
download | Nim-2c2baa9fad1d144c42baf30ed004decdf8bb0483.tar.gz |
Link the <fenv.h> header (#16597)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tfenv.nim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/stdlib/tfenv.nim b/tests/stdlib/tfenv.nim index f58acf1c8..5bcd1ea7c 100644 --- a/tests/stdlib/tfenv.nim +++ b/tests/stdlib/tfenv.nim @@ -1,8 +1,7 @@ -import fenv +import std/fenv func is_significant(x: float): bool = - if x > minimumPositiveValue(float) and x < maximumPositiveValue(float): true - else: false + x > minimumPositiveValue(float) and x < maximumPositiveValue(float) doAssert is_significant(10.0) |