We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecd99c9 commit 911d563Copy full SHA for 911d563
test/graphs/shortest-path/dijkstra.spec.js
@@ -0,0 +1,15 @@
1
+var dijkstra =
2
+ require('../../../src/graphs/shortest-path/dijkstra').dijkstra;
3
+
4
+describe('dijkstra', function () {
5
+ 'use strict';
6
+ it('should define a function', function () {
7
+ expect(dijkstra).toBeDefined();
8
+ expect(typeof dijkstra).toBe('function');
9
+ });
10
11
+ it('should work with empty graph', function () {
12
+ expect(dijkstra(0, 0, [])).toBe(Infinity);
13
14
15
+});
0 commit comments