diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-02-06 10:33:11 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-06 17:33:11 +0100 |
commit | 065264eae1785b3cfb63840745df63b83fbd330b (patch) | |
tree | a541e6d0ec2276734c836d562b195c42e03dabb4 /tests/stdlib | |
parent | 39230422d02bd41b02378211e8613f702e5b945c (diff) | |
download | Nim-065264eae1785b3cfb63840745df63b83fbd330b.tar.gz |
close #16921 (#16951)
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/trationals.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/stdlib/trationals.nim b/tests/stdlib/trationals.nim index dc100b6d6..0a3a95a9a 100644 --- a/tests/stdlib/trationals.nim +++ b/tests/stdlib/trationals.nim @@ -96,5 +96,8 @@ template main() = doAssert floorMod(3 // 10, 1 // 1) == 3 // 10 doAssert floorMod(-3 // 10, 1 // 1) == 7 // 10 + when sizeof(int) == 8: + doAssert almostEqual(PI.toRational.toFloat, PI) + static: main() main() |