Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1m0 committed Apr 3, 2024
1 parent ef5a593 commit b6a31b8
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions test/succ.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function isException(sample: string, fun: sol.FunctionDefinition, element: sol.A

for (const o of res) {
console.error(o.id, element.id);
if (o === element) {
if (o.id === element.id) {
return true;
}
}
Expand Down Expand Up @@ -302,12 +302,16 @@ describe("Test succ relation for all samples", () => {
continue;
}

if (reachable.has(element.id)) {
continue;
}

// This is a legit exception
if (isException(sample, fun, element)) {
continue;
}

if (verbose && !reachable.has(element.id)) {
if (verbose) {
console.error(
`Node ${element.extractSourceFragment(contents)} (${
element.constructor.name
Expand All @@ -317,7 +321,7 @@ describe("Test succ relation for all samples", () => {
);
}

expect(reachable.has(element.id)).toBeTruthy();
expect(false).toBeTruthy();
}
}
}
Expand Down

0 comments on commit b6a31b8

Please sign in to comment.