Answer the review: one home per contract, and cover the matching's last branch
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-27 13:17:08 +02:00
parent a8bea25b7c
commit 1108d36d1f
7 changed files with 76 additions and 30 deletions
+1 -2
View File
@@ -72,7 +72,6 @@ function roundTripFixtures(): { name: string; path: string }[] {
)
}
// One spelling for two documents is a round-trip break no parser can undo, and no parser is needed to see it.
test('no two round-trip documents share one markdown spelling', () => {
const spellings = new Map<string, string>()
for (const fixture of roundTripFixtures()) {
@@ -89,7 +88,7 @@ test('no round-trip fixture repeats the document another holds', () => {
const documents = new Map<string, string>()
for (const fixture of roundTripFixtures()) {
const parsed: unknown = JSON.parse(readFileSync(fixture.path, 'utf8'))
assert.ok(isJsonValue(parsed))
assert.ok(isJsonValue(parsed), `${fixture.name} does not hold a JSON value`)
const document = serializeCanonicalJson(parsed, 'compact')
assert.equal(documents.get(document), undefined, `${fixture.name} repeats the document ${documents.get(document)} holds`)
documents.set(document, fixture.name)