[Pkg-haskell-commits] darcs: haskell-lens: Disable an unreliable test that fails on hurd-i386 and kfreebsd-i386 due to slight differences in floating-point representation.

Colin Watson cjwatson at debian.org
Mon Jun 17 20:30:19 UTC 2013


Mon Jun 17 20:30:13 UTC 2013  Colin Watson <cjwatson at debian.org>
  * Disable an unreliable test that fails on hurd-i386 and kfreebsd-i386 due to slight differences in floating-point representation.

    M ./changelog +7
    A ./patches/disable-unreliable-test.diff
    M ./patches/series +1

Mon Jun 17 20:30:13 UTC 2013  Colin Watson <cjwatson at debian.org>
  * Disable an unreliable test that fails on hurd-i386 and kfreebsd-i386 due to slight differences in floating-point representation.
diff -rN -u old-haskell-lens/changelog new-haskell-lens/changelog
--- old-haskell-lens/changelog	2013-06-17 20:30:19.377552901 +0000
+++ new-haskell-lens/changelog	2013-06-17 20:30:19.377552901 +0000
@@ -1,3 +1,10 @@
+haskell-lens (3.9.0.2-3) UNRELEASED; urgency=low
+
+  * Disable an unreliable test that fails on hurd-i386 and kfreebsd-i386 due
+    to slight differences in floating-point representation.
+
+ -- Colin Watson <cjwatson at debian.org>  Mon, 17 Jun 2013 21:29:20 +0100
+
 haskell-lens (3.9.0.2-2) unstable; urgency=low
 
   * Enable compat level 9
diff -rN -u old-haskell-lens/patches/disable-unreliable-test.diff new-haskell-lens/patches/disable-unreliable-test.diff
--- old-haskell-lens/patches/disable-unreliable-test.diff	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-lens/patches/disable-unreliable-test.diff	2013-06-17 20:30:19.389610808 +0000
@@ -0,0 +1,24 @@
+Description: Disable an unreliable test
+ This test is currently unreliable due to slight differences in
+ floating-point representation (https://github.com/ekmett/lens/issues/310),
+ and fails on hurd-i386 and kfreebsd-i386 in a way that does not indicate a
+ problem with the **~ operator itself.  This patch may be dropped once the
+ test is fixed.
+Author: Colin Watson <cjwatson at debian.org>
+Forwarded: no
+Last-Update: 2013-06-17
+
+Index: b/src/Control/Lens/Setter.hs
+===================================================================
+--- a/src/Control/Lens/Setter.hs
++++ b/src/Control/Lens/Setter.hs
+@@ -669,9 +669,6 @@
+ -- >>> (a,b) & both **~ c
+ -- (a**c,b**c)
+ --
+--- >>> _2 **~ pi $ (1,3)
+--- (1,31.54428070019754)
+---
+ -- @
+ -- ('**~') :: 'Floating' a => 'Setter'' s a    -> a -> s -> s
+ -- ('**~') :: 'Floating' a => 'Iso'' s a       -> a -> s -> s
diff -rN -u old-haskell-lens/patches/series new-haskell-lens/patches/series
--- old-haskell-lens/patches/series	2013-06-17 20:30:19.365547712 +0000
+++ new-haskell-lens/patches/series	2013-06-17 20:30:19.393541698 +0000
@@ -1,3 +1,4 @@
 fix-doctest-path.hs
 fudge-doctest-nonascii.diff
 no-transformers-compat.diff
+disable-unreliable-test.diff




More information about the Pkg-haskell-commits mailing list