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 d class='sub'>Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/piet.scm
diff options
context:
space:
mode:
authorDanny Milosavljevic <dannym@friendly-machines.com>2024-11-12 03:55:40 +0100
committerDanny Milosavljevic <dannym@friendly-machines.com>2024-11-12 03:55:40 +0100
commitef84004825cd8a60734258c054bed194c6628f8e (patch)
treea2f9b68f47659182e41f2ffe73a5f0809d4f92a0 /gnu/packages/piet.scm
parent0cc5b58967a1be867d50521cc44130ed85154053 (diff)
downloadguix-ef84004825cd8a60734258c054bed194c6628f8e.tar.gz
guix-ef84004825cd8a60734258c054bed194c6628f8e.zip
gnu: emacs-org-node: Update to 1.7.4.
* gnu/packages/emacs-xyz.scm (emacs-org-node): Update to 1.7.4. Change-Id: Ie1da1b7626f9deb9abc64abdb5df544f68e34c4e
Diffstat (limited to 'gnu/packages/piet.scm')
0 files changed, 0 insertions, 0 deletions