[Git][haskell-team/DHG_packages][master] libBF: Upgrading from 0.6.6 to 0.6.8

Clint Adams (@clint) gitlab at salsa.debian.org
Thu Oct 3 14:59:54 BST 2024



Clint Adams pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
feed0ae6 by Clint Adams at 2024-10-03T09:49:00-04:00
libBF: Upgrading from 0.6.6 to 0.6.8

- - - - -


3 changed files:

- p/haskell-libbf/debian/changelog
- p/haskell-libbf/debian/control
- p/haskell-libbf/debian/patches/0001-Revert-Add-unit-tests-for-22.patch


Changes:

=====================================
p/haskell-libbf/debian/changelog
=====================================
@@ -1,8 +1,12 @@
-haskell-libbf (0.6.6-3) UNRELEASED; urgency=medium
+haskell-libbf (0.6.8-1) unstable; urgency=medium
 
+  [ Ilias Tsitsimpis ]
   * Declare compliance with Debian policy 4.7.0
 
- -- Ilias Tsitsimpis <iliastsi at debian.org>  Wed, 11 Sep 2024 15:17:48 +0300
+  [ Clint Adams ]
+  * New upstream release
+
+ -- Clint Adams <clint at debian.org>  Thu, 03 Oct 2024 09:43:44 -0400
 
 haskell-libbf (0.6.6-2) unstable; urgency=medium
 


=====================================
p/haskell-libbf/debian/control
=====================================
@@ -10,6 +10,12 @@ Build-Depends: debhelper (>= 10),
  ghc-prof,
  libghc-hashable-dev (>= 1.3),
  libghc-hashable-prof,
+ libghc-tasty-dev (>= 1.3),
+ libghc-tasty-dev (<< 1.6),
+ libghc-tasty-prof,
+ libghc-tasty-hunit-dev (>= 0.10),
+ libghc-tasty-hunit-dev (<< 0.11),
+ libghc-tasty-hunit-prof,
 Build-Depends-Indep: ghc-doc,
  libghc-hashable-doc,
 Standards-Version: 4.7.0


=====================================
p/haskell-libbf/debian/patches/0001-Revert-Add-unit-tests-for-22.patch
=====================================
@@ -8,39 +8,26 @@ This reverts commit 1071631f1360838707ed2014f967f6cfde0bcf40.
  tests/RunUnitTests.hs | 11 ++---------
  1 file changed, 2 insertions(+), 9 deletions(-)
 
-diff --git a/tests/RunUnitTests.hs b/tests/RunUnitTests.hs
-index bd67065..25cf6ec 100644
 --- a/tests/RunUnitTests.hs
 +++ b/tests/RunUnitTests.hs
-@@ -1,7 +1,6 @@
- {-# Language BlockArguments #-}
- module Main(main) where
- 
--import Data.Foldable(traverse_)
- import System.Exit(exitFailure)
- import System.IO(hPutStrLn,stderr)
- import Control.Monad(unless)
-@@ -16,8 +15,6 @@ main =
-      print $ bfFromString 10 (expBits 3 <> precBits 2 <> rnd ToZero) "1.0e200"
-      dblTest "+" (+) (bfAdd (float64 NearEven)) 1 2
-      dblTest "/" (/) (bfDiv (float64 NearEven)) 1 0
--     traverse_ (\bf -> bfSubnormalTest bf False)
--       [bfPosZero, bfFromInt 1, bfFromInt 0, bfNaN, bfNegInf, bfPosInf]
- 
- check :: String -> Bool -> IO ()
- check x b = unless b
-@@ -43,9 +40,5 @@ dblTest op opD opBF x y =
+@@ -31,9 +31,6 @@ main =
+     , testGroup "bfDiv"
+         [ dblTestCase "/" (/) (bfDiv (float64 NearEven)) 1 0
+         ]
+-    , testGroup "bfIsSubnormal (float32 NearEven)"
+-        (map (\bf -> bfSubnormalTestCase bf False)
+-             [bfPosZero, bfFromInt 1, bfFromInt 0, bfNaN, bfNegInf, bfPosInf])
+     , testGroup "IEEE 754 compare"
+       [ testGroup "Comparisons with NaN should always return False"
+         [ testCase "NaN > 0" $ False @=? bfNaN > bfPosZero
+@@ -75,10 +72,3 @@ dblTestCase op opD opBF x y =
+           case bfToDouble NearEven res of
              (res1,Ok) -> Right res1
              (_, s)    -> Left ("result: " ++ show s)
- 
+-
 --- Check that calling bfIsSubnormal on a BigFloat value returns the expected
 --- result.
--bfSubnormalTest :: BigFloat -> Bool -> IO ()
--bfSubnormalTest bf expected =
--  check ("bfIsSubnormal (float32 NearEven) " ++ show bf)
--        (bfIsSubnormal (float32 NearEven) bf == expected)
-+
-+
--- 
-2.30.2
-
+-bfSubnormalTestCase :: BigFloat -> Bool -> TestTree
+-bfSubnormalTestCase bf expected =
+-  testCase (show bf) $
+-  expected @=? bfIsSubnormal (float32 NearEven) bf



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/feed0ae6fe377328652f0248baebba78462f3e44

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/feed0ae6fe377328652f0248baebba78462f3e44
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20241003/1c2b67a6/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list