Skip to content

Commit 3dfcfab

Browse files
committed
another test error message for error-table infra
1 parent 5cc0f9d commit 3dfcfab

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[a span with a bad attribute]{[
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Found an unexpected character instead of language specifier, an identifier, a class specifier, or a key-value pair.
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
{"column":14,"row":0,"state":933,"sym":"end"}
2-
31
[
42
{
53
"column": 14,
64
"row": 0,
75
"state": 933,
86
"sym": "end",
97
"errorMsg": "Reached end of file before finding closing ']' for span."
8+
},
9+
{
10+
"column": 30,
11+
"row": 0,
12+
"state": 1637,
13+
"sym": "_error",
14+
"errorMsg": "Found an unexpected character instead of language specifier, an identifier, a class specifier, or a key-value pair."
1015
}
1116
]

crates/quarto-markdown-pandoc/scripts/build_error_table.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env deno run --allow-read --allow-write --allow-env --allow-run
22

3-
import { error } from "node:console";
43
import * as fs from "node:fs";
54
import { basename } from "node:path";
65

@@ -15,7 +14,6 @@ for (const file of fs.globSync("resources/error-corpus/*.qmd")) {
1514
});
1615
const output = await parseResult.output();
1716
const outputStdout = new TextDecoder().decode(output.stdout);
18-
console.log(outputStdout);
1917
const reportedError = JSON.parse(outputStdout);
2018
result.push({
2119
...reportedError,

0 commit comments

Comments
 (0)