Skip to content

Commit a06c46c

Browse files
committed
add: more path tests
1 parent 0ec60d9 commit a06c46c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/PathTest.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,18 @@ pathTests({
7979
finder: new PF.BiDijkstraFinder(),
8080
optimal: true
8181
});
82+
83+
// finders NOT guaranteed to find the shortest path
84+
pathTests({
85+
name: 'BiAStar',
86+
finder: new PF.BiAStarFinder(),
87+
optimal: false
88+
}, {
89+
name: 'BestFirst',
90+
finder: new PF.BestFirstFinder(),
91+
optimal: false
92+
}, {
93+
name: 'BiBestFirst',
94+
finder: new PF.BiBestFirstFinder(),
95+
optimal: false
96+
});

0 commit comments

Comments
 (0)