Skip to content

Commit f07feb7

Browse files
committed
add a few more tests
1 parent a348d58 commit f07feb7

File tree

3 files changed

+127
-0
lines changed

3 files changed

+127
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: test
3+
code-annotations: none
4+
_quarto:
5+
tests:
6+
html:
7+
ensureHtmlElements:
8+
- []
9+
- ["dt"]
10+
---
11+
12+
```{.python}
13+
# line 1
14+
15+
# line 2
16+
```
17+
18+
```{r}
19+
foo <- "bar" # <1>
20+
plot(cars)
21+
```
22+
1. hi
23+
24+
:::{.column-margin}
25+
26+
```{.python}
27+
# line 1
28+
x = "Python" # <1>
29+
y = "is" # <1>
30+
z = "awesome"
31+
32+
print(x, y, z)
33+
34+
# line 2
35+
```
36+
37+
1. hi
38+
39+
:::
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: test
3+
code-annotations: select
4+
_quarto:
5+
tests:
6+
html:
7+
ensureHtmlElements:
8+
- ["dl", "dt", "#annotated-cell-1", "#annotated-cell-2", "#annotated-cell-3" ]
9+
- []
10+
---
11+
12+
```{.python}
13+
# line 1
14+
x = "Python" # <1>
15+
y = "is" # <1>
16+
z = "awesome"
17+
18+
print(x, y, z)
19+
20+
# line 2
21+
```
22+
23+
1. hi
24+
25+
This is some test content.
26+
27+
```{r}
28+
foo <- "bar" # <1>
29+
plot(cars)
30+
```
31+
1. hi
32+
33+
```{.python}
34+
# line 1
35+
x = "Python" # <1>
36+
y = "is" # <1>
37+
z = "awesome"
38+
39+
print(x, y, z)
40+
41+
# line 2
42+
```
43+
44+
1. hi
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: test
3+
code-annotations: select
4+
_quarto:
5+
tests:
6+
html:
7+
ensureHtmlElements:
8+
- ["dl", "dt", "#annotated-cell-1", "#annotated-cell-3" ]
9+
- ["#annotated-cell-2"]
10+
---
11+
12+
```{.python}
13+
# line 1
14+
x = "Python" # <1>
15+
y = "is" # <1>
16+
z = "awesome"
17+
18+
print(x, y, z)
19+
20+
# line 2
21+
```
22+
23+
1. hi
24+
25+
This is some test content.
26+
27+
```{r}
28+
foo <- "bar"
29+
plot(cars)
30+
```
31+
1. hi
32+
33+
```{.python}
34+
# line 1
35+
x = "Python" # <1>
36+
y = "is" # <1>
37+
z = "awesome"
38+
39+
print(x, y, z)
40+
41+
# line 2
42+
```
43+
44+
1. hi

0 commit comments

Comments
 (0)