[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/19: gnu: Add perl-test-number-delta.

From: Marius Bakke
Subject: 11/19: gnu: Add perl-test-number-delta.
Date: Thu, 2 Mar 2017 12:39:53 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 25c3cf3edb42eddc7fd8071fceba36cbf3656756
Author: Marius Bakke <address@hidden>
Date:   Fri Dec 9 21:28:46 2016 +0100

    gnu: Add perl-test-number-delta.
    * gnu/packages/perl.scm (perl-test-number-delta): New variable.
 gnu/packages/perl.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm
index 2321a05..29c6b07 100644
--- a/gnu/packages/perl.scm
+++ b/gnu/packages/perl.scm
@@ -6615,6 +6615,29 @@ including a stack trace of what was going on when it 
                               "Test-NoWarnings-" version))
     (license lgpl2.1)))
+(define-public perl-test-number-delta
+  (package
+    (name "perl-test-number-delta")
+    (version "1.06")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://cpan/authors/id/D/DA/DAGOLDEN/"
+                                  "Test-Number-Delta-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0jfhzhpzkc23mkrlbnv085ykpfncmy99hvppbzjnrpvgks8k0m2k"))))
+    (build-system perl-build-system)
+    (home-page "";)
+    (synopsis
+     "Compare the difference between numbers against a given tolerance")
+    (description
+     "At some point or another, most programmers find they need to compare
+floating-point numbers for equality.  The typical idiom is to test if the
+absolute value of the difference of the numbers is within a desired tolerance,
+usually called epsilon.  This module provides such a function for use with
+    (license asl2.0)))
 (define-public perl-test-output
     (name "perl-test-output")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]