Skip to content
Browse files

Add deeper tests.

  • Loading branch information...
1 parent 6495196 commit d04faaed2204df2dfffa5b336871c0b9cef4d7be @hiratara committed Sep 27, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 t/grid_maker.t
View
13 t/grid_maker.t
@@ -4,10 +4,13 @@ use Test::More;
use Algorithm::Simpath;
use Algorithm::Simpath::GridMaker;
-my $edges = Algorithm::Simpath::GridMaker::create_edges(5, 5);
-my $zdd = solve(
- start => '0,0', goal => '5,5', edges => $edges,
-);
-is $zdd->count, 1262816;
+for ([4 => 8512], [5 => 1262816], [6 => 575780564], [7 => 789360053252]) {
+ my ($size, $expected) = @$_;
+ my $edges = Algorithm::Simpath::GridMaker::create_edges($size, $size);
+ my $zdd = solve(
+ start => '0,0', goal => "$size,$size", edges => $edges,
+ );
+ is $zdd->count, $expected;
+}
done_testing;

0 comments on commit d04faae

Please sign in to comment.
Something went wrong with that request. Please try again.