Permalink
Browse files

removed Makefile preamble (not compatitible with non-Linux makes)

  • Loading branch information...
1 parent 706e460 commit ef4c1b8871196452981fc96f6239c1b137b11ebb @semifor committed Dec 16, 2010
Showing with 12 additions and 5 deletions.
  1. +4 −0 Changes
  2. +0 −3 Makefile.PL
  3. +1 −1 lib/Math/Round/Fair.pm
  4. +2 −0 t/01-round_fair.t
  5. +2 −0 t/02-adjacent.t
  6. +1 −1 t/99-pod_coverage.t
  7. +2 −0 t/regression.t
View
@@ -1,3 +1,7 @@
+0.03 2010-12-16
+ - fixed: Makefile incompatibility with non-Linux makes
+ - minor documentation fixes
+
0.02 2010-12-14
- virtual rewrite with alogorithm and code from Anders Johnson:
- fixes an over-allocation bug
View
@@ -22,7 +22,4 @@ test_requires 'Math::CDF';
auto_set_repository;
auto_manifest;
-# ensure $debug=1 for tests
-preamble "export MATH_ROUND_FAIR_DEBUG=1\n";
-
WriteAll;
@@ -8,7 +8,7 @@ use base qw/Exporter/;
use List::Util qw/shuffle sum min/;
use POSIX qw/floor ceil DBL_EPSILON/;
-our $VERSION = '0.02';
+our $VERSION = '0.03';
our @EXPORT_OK = qw/round_fair round_adjacent/;
View
@@ -4,6 +4,8 @@ use strict;
use Test::More tests => 6;
use List::Util qw/sum min max/;
+BEGIN { $ENV{MATH_ROUND_FAIR_DEBUG} = 1 }
+
BEGIN { use_ok 'Math::Round::Fair', qw/round_fair/ }
ok Math::Round::Fair::DEBUG(), 'assertions enabled for tests';
View
@@ -3,6 +3,8 @@ use warnings;
use strict;
use Test::More tests => 2;
+BEGIN { $ENV{MATH_ROUND_FAIR_DEBUG} = 1 }
+
BEGIN { use_ok 'Math::Round::Fair', qw/round_fair/ }
my @w = (0.95, 0.65, 0.41, 0.99);
View
@@ -12,4 +12,4 @@ plan skip_all => 'Pod::Coverage 0.19 required' if $@;
eval "use Test::Pod::Coverage 1.04";
plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-all_pod_coverage_ok();
+all_pod_coverage_ok({ also_private => [qr/^DEBUG$/] });
View
@@ -5,6 +5,8 @@ use Test::More tests => 3;
use List::Util 'sum';
use Perl6::Junction 'all';
+BEGIN { $ENV{MATH_ROUND_FAIR_DEBUG} = 1 }
+
BEGIN {
*CORE::GLOBAL::rand = sub { 0.99999 };
}

0 comments on commit ef4c1b8

Please sign in to comment.