Skip to content

Commit

Permalink
add: more path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qiao committed Apr 28, 2012
1 parent 0ec60d9 commit a06c46c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/PathTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,18 @@ pathTests({
finder: new PF.BiDijkstraFinder(),
optimal: true
});

// finders NOT guaranteed to find the shortest path
pathTests({
name: 'BiAStar',
finder: new PF.BiAStarFinder(),
optimal: false
}, {
name: 'BestFirst',
finder: new PF.BestFirstFinder(),
optimal: false
}, {
name: 'BiBestFirst',
finder: new PF.BiBestFirstFinder(),
optimal: false
});

0 comments on commit a06c46c

Please sign in to comment.