1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-24 10:05:52 +00:00

Export Slic3r::Test::_eq()

This commit is contained in:
Alessandro Ranellucci
2012-12-21 13:25:03 +01:00
parent 494a1a84cf
commit 701c98c5a7
2 changed files with 11 additions and 7 deletions
+5 -1
View File
@@ -2,6 +2,10 @@ package Slic3r::Test;
use strict;
use warnings;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(_eq);
use IO::Scalar;
use Slic3r::Geometry qw(epsilon);
@@ -48,7 +52,7 @@ sub gcode {
return $gcode;
}
sub compare {
sub _eq {
my ($a, $b) = @_;
return abs($a - $b) < epsilon;
}