Pin the suite run, gate the exception list, and trim the corpus README
This commit is contained in:
@@ -56,8 +56,8 @@ const spec = readSpec()
|
||||
const exceptions = readExceptions()
|
||||
const exceptionIndex = new Map(exceptions.map((entry) => [`${entry.example}:${entry.check}`, entry.reason]))
|
||||
|
||||
test('the CommonMark spec suite is the version the parser names', () => {
|
||||
assert.ok(spec.length > 600, `spec.json holds ${spec.length} examples, not a full suite`)
|
||||
test('the CommonMark spec suite is the pinned 0.31.2 run', () => {
|
||||
assert.equal(spec.length, 652)
|
||||
})
|
||||
|
||||
test('the exception list is unique per example and check', () => {
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ function pairedNames(root: string, first: string, second: string): string[] {
|
||||
function corpusJsonPaths(): string[] {
|
||||
return readdirSync(corpusRoot, { encoding: 'utf8', recursive: true })
|
||||
.filter((name) => name.endsWith('.json'))
|
||||
.filter((name) => !name.startsWith(`commonmark-spec${sep}`))
|
||||
.filter((name) => name !== `commonmark-spec${sep}spec.json`)
|
||||
.map((name) => join(corpusRoot, name))
|
||||
.sort()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user