Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Test.pm] remove unused function approx()
  • Loading branch information
moritz committed Mar 22, 2009
1 parent 07ad307 commit 1d2451d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Test.pm
Expand Up @@ -22,13 +22,6 @@ our $testing_started;

## test functions

# Compare numeric values with approximation
sub approx ($x, $y) {
my $epsilon = 0.00001;
my $diff = abs($x - $y);
($diff < $epsilon);
}

# you can call die_on_fail; to turn it on and die_on_fail(0) to turn it off
sub die_on_fail($fail=1) {
$die_on_fail = $fail;
Expand Down

0 comments on commit 1d2451d

Please sign in to comment.