Algorithm-QuadTree-XS
view release on metacpan or search on metacpan
t/02-zones.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
my $qt = Algorithm::QuadTree->new(
-xmin => 0,
-xmax => AREA_SIZE,
-ymin => 0,
-ymax => AREA_SIZE,
-depth => $QuadTreeUtils::DEPTH
);
t/03-delete.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
my $qt = Algorithm::QuadTree->new(
-xmin => 0,
-xmax => AREA_SIZE,
-ymin => 0,
-ymax => AREA_SIZE,
-depth => $QuadTreeUtils::DEPTH
);
t/04-circles.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
$QuadTreeUtils::DEPTH = 2;
my $qt = Algorithm::QuadTree->new(
-xmin => 0,
-xmax => AREA_SIZE,
-ymin => 0,
-ymax => AREA_SIZE,
-depth => $QuadTreeUtils::DEPTH
t/06-references.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
my $qt = Algorithm::QuadTree->new(
-xmin => 0,
-xmax => AREA_SIZE,
-ymin => 0,
-ymax => AREA_SIZE,
-depth => $QuadTreeUtils::DEPTH
);
t/08-geometry.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
my $qt = Algorithm::QuadTree->new(
-xmin => 0,
-xmax => 8,
-ymin => 0,
-ymax => 8,
-depth => 2,
);
t/author-leaks.t view on Meta::CPAN
exit
}
}
use strict;
use warnings;
use Test::More;
use Algorithm::QuadTree;
use lib 't/lib';
use QuadTreeUtils;
$QuadTreeUtils::DEPTH = 6;
use constant HAS_TEST_MEMORYGROWTH => eval { require Test::MemoryGrowth; 1 };
plan skip_all => 'This test requires Test::MemoryGrowth module'
unless HAS_TEST_MEMORYGROWTH;
################################################################################
# This tests whether Algorithm::QuadTree leaks memory
( run in 1.873 second using v1.01-cache-2.11-cpan-2398b32b56e )