feat: complete advanced Sudoku workbench
This commit is contained in:
@@ -98,9 +98,10 @@ describe("Sudoku Tools document format", () => {
|
||||
};
|
||||
const hash = encodePuzzleHash(source);
|
||||
expect(hash).toMatch(/^#sudoku=v1\./u);
|
||||
expect(decodePuzzleHash(`https://example.invalid/tools/${hash}`)).toEqual(
|
||||
source,
|
||||
);
|
||||
expect(decodePuzzleHash(`https://example.invalid/tools/${hash}`)).toEqual({
|
||||
...source,
|
||||
source: { format: "sudoku-tools" },
|
||||
});
|
||||
});
|
||||
|
||||
it("round-trips grids for every supported size and symbol", () => {
|
||||
|
||||
Reference in New Issue
Block a user