mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Feat: Return test result for output recording
This commit is contained in:
@@ -16,5 +16,6 @@ export default {
|
|||||||
const hull = await findConvexHull(points);
|
const hull = await findConvexHull(points);
|
||||||
const sortFn = (a, b) => a.x - b.x || a.y - b.y;
|
const sortFn = (a, b) => a.x - b.x || a.y - b.y;
|
||||||
assert.deepStrictEqual(hull.sort(sortFn), expected.sort(sortFn), "Test Failed: Convex hull points do not match.");
|
assert.deepStrictEqual(hull.sort(sortFn), expected.sort(sortFn), "Test Failed: Convex hull points do not match.");
|
||||||
|
return hull;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user