Skip to content

Commit

Permalink
test: ✅ More difficult test case, still passes!
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Dec 5, 2021
1 parent 61c0ee1 commit 7985313
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
6 changes: 6 additions & 0 deletions test/dfsAllPaths.1.approved.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
[
"B",
"A"
]
]
19 changes: 19 additions & 0 deletions test/dfsAllPaths.2.approved.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,29 @@
"b",
"a"
],
[
"f",
"d",
"c",
"b",
"a"
],
[
"f",
"e",
"d",
"b",
"a"
],
[
"f",
"d",
"b",
"a"
],
[
"f",
"d",
"c",
"a"
]
Expand Down
5 changes: 0 additions & 5 deletions test/dfsAllPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ describe("dfsAllPaths", function () {
const paths = dfsAllPaths(g, "A");

verify.call(this, paths);
// this.verifyAsJSON(paths, {
// reporters: ["tortoisemerge"],
// appendEOL: true,
// normalizeLineEndingsTo: "\r\n",
// });
});

it("2", function () {
Expand Down
2 changes: 2 additions & 0 deletions test/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ export function testGraph() {
g.addEdge("a", "b", { dir: "up", field: "up" });
g.addEdge("a", "c", { dir: "up", field: "up" });
g.addEdge("b", "c", { dir: "up", field: "up" });
g.addEdge("b", "d", { dir: "up", field: "up" });
g.addEdge("c", "d", { dir: "up", field: "up" });
g.addEdge("d", "e", { dir: "up", field: "up" });
g.addEdge("d", "f", { dir: "up", field: "up" });
g.addEdge("e", "f", { dir: "up", field: "up" });

return g;
Expand Down

0 comments on commit 7985313

Please sign in to comment.