From 58766a1916b4980792763bab74f0c86e2a7ebf20 Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Thu, 1 Jun 2023 22:58:28 +0300 Subject: [PATCH] QC-2.14.3 Double generators generates infinite number too --- tests/PropUtils.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/PropUtils.hs b/tests/PropUtils.hs index 3c449029a..43de85d7f 100644 --- a/tests/PropUtils.hs +++ b/tests/PropUtils.hs @@ -51,8 +51,9 @@ import qualified Data.Aeson.Decoding as Dec encodeDouble :: Double -> Double -> Property encodeDouble num denom - | isInfinite d || isNaN d = encode d === "null" - | otherwise = (read . L.unpack . encode) d === d + | isNaN d = encode d === "null" + | isInfinite d = if d > 0 then encode d === "\"+inf\"" else encode d === "\"-inf\"" + | otherwise = (read . L.unpack . encode) d === d where d = num / denom encodeInteger :: Integer -> Property >Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorLeo Famulari <leo@famulari.name>2021-07-31 13:25:26 -0400
committerLeo Famulari <leo@famulari.name>2021-07-27 12:35:01 -0400
commitb62e74e0539793257e1c42637637654832d55149 (patch)
tree61bc0b0e32a4f043530516bacafbcadbc5347dc0 /gnu/packages
parent2b2691555286919c1e2c4911fbea77042f9670c3 (diff)
downloadguix-b62e74e0539793257e1c42637637654832d55149.tar.gz
guix-b62e74e0539793257e1c42637637654832d55149.zip
gnu: linux-libre 4.19: Update to 4.19.200.
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.200. (linux-libre-4.19-pristine-source): Update hash.
Diffstat (limited to 'gnu/packages')