Skip to content

Commit f5645bb

Browse files
committed
Add extra information for the test case
1 parent af6de19 commit f5645bb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/graphs/searching/bfs.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ describe('BFS', function () {
3434
expect(bfs(graph, 0, 2)).toBeFalsy();
3535
});
3636

37+
/**
38+
* In this case the graph should not
39+
* update the parent of 2, in case it was called
40+
* with source 0 and target 2, after the first iteration.
41+
*
42+
* 0 ---> 1
43+
* \ |
44+
* \ v
45+
* -> 2
46+
*/
3747
it('should not update the parent node once set', function () {
3848
var graph = [[0, 1, 1],
3949
[0, 0, 1],

0 commit comments

Comments
 (0)