Skip to content

Commit 9416ad1

Browse files
committed
test: tweak test files
1 parent 53f0ede commit 9416ad1

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

tests/docs/smoke-all/typst/code-filename/code-filename-annotation-cell-jupyter.qmd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ _quarto:
99
typst:
1010
ensureTypstFileRegexMatches:
1111
-
12-
- 'quarto-code-filename\('
12+
- 'quarto-code-filename\("hello\.py"\)\[\s*#Skylighting\(annotations:'
1313
- "quarto-annotation-item"
1414
- "annotations:"
1515
- []
1616
---
1717

1818
```{python}
1919
#| filename: "hello.py"
20-
x = 1 # <1>
21-
y = 2
22-
z = x + y # <2>
20+
print("Hello, world!") # <1>
2321
```
2422

25-
1. Assign x.
26-
2. Compute sum.
23+
1. Print a greeting.

tests/docs/smoke-all/typst/code-filename/code-filename-annotation-cell-knitr.qmd

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ _quarto:
99
typst:
1010
ensureTypstFileRegexMatches:
1111
-
12-
- 'quarto-code-filename\('
12+
- 'quarto-code-filename\("hello\.R"\)\[\s*#Skylighting\(annotations:'
1313
- "quarto-annotation-item"
1414
- "annotations:"
1515
- []
1616
---
1717

1818
```{r}
1919
#| filename: "hello.R"
20-
x <- 1 # <1>
21-
y <- 2
22-
z <- x + y # <2>
20+
print("Hello, world!") # <1>
2321
```
2422

25-
1. Assign x.
26-
2. Compute sum.
23+
1. Print a greeting.

0 commit comments

Comments
 (0)