Skip to content

Commit a7f1698

Browse files
committed
add test automation for project
1 parent 4090d1d commit a7f1698

File tree

12 files changed

+2595
-527
lines changed

12 files changed

+2595
-527
lines changed

Gruntfile.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
module.exports = function(grunt) {
3+
4+
grunt.initConfig({
5+
pkg: grunt.file.readJSON('package.json'),
6+
7+
qunit: {
8+
all: ['test/index.html']
9+
},
10+
11+
12+
jshint: {
13+
options: {
14+
browser: true,
15+
sub: true,
16+
globals: {
17+
}
18+
},
19+
all: ['graph.js', 'astar.js']
20+
}
21+
});
22+
23+
24+
grunt.loadNpmTasks('grunt-contrib-jshint');
25+
grunt.loadNpmTasks('grunt-contrib-qunit');
26+
27+
grunt.registerTask('default', ['jshint', 'qunit']);
28+
29+
};

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ See a demo at http://www.briangrinstead.com/files/astar/
99
The newest version of the algorithm using a Binary Heap. It is quite faster than the original.
1010
http://www.briangrinstead.com/blog/astar-search-algorithm-in-javascript-updated
1111
Binary Heap taken from http://eloquentjavascript.net/appendix2.html (license: http://creativecommons.org/licenses/by/3.0/)
12-
13-
14-
### original-implementation/astar-list.js:
12+
13+
### original-implementation/astar-list.js:
1514

1615
The original version of the algorithm based off the original blog post at: http://www.briangrinstead.com/blog/astar-search-algorithm-in-javascript
1716
I left it in because it may be a little easier for some people to understand, but if you are planning on actually using this, I would strongly recommend using astar.js instead.
@@ -32,7 +31,7 @@ If you want just the A* search code (not the demo visualization), use code like
3231
var end = graph.nodes[1][2];
3332
var result = astar.search(graph.nodes, start, end);
3433
// result is an array containing the shortest path
35-
34+
3635
var resultWithDiagonals = astar.search(graph.nodes, start, end, true);
3736
// result now searches diagonal neighbors as well
3837

Rakefile

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/astar.html

Lines changed: 0 additions & 98 deletions
This file was deleted.

docs/docco.css

Lines changed: 0 additions & 192 deletions
This file was deleted.

0 commit comments

Comments
 (0)