develooper Front page | perl.perl6.internals | Postings from January 2008

[perl #50216] [PATCH] Add approx() function to perl6 Test.pm library

Thread Previous
From:
Cosimo Streppone
Date:
January 24, 2008 15:47
Subject:
[perl #50216] [PATCH] Add approx() function to perl6 Test.pm library
# New Ticket Created by  Cosimo Streppone 
# Please include the string:  [perl #50216]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=50216 >


Recently I've been working on the perl6 test suite
that lives in pugs/t/spec repository.

Several test scripts in the "math" category use
an `approx()' function to compare two floating point
numbers with approximation, but they defined it
every time in each test script.

So I wrote and tested this patch against r24953
which adds approx() to languages/perl6/Test.pm.

-- 
Cosimo





Thread Previous


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About