Skip to content

Commit d2091d7

Browse files
pwildenhainlorenzwalthert
authored andcommitted
✅ Add new tests + files
1 parent 0a1db57 commit d2091d7

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Parsable Rmd Fail"
3+
output: rmarkdown::html_document
4+
---
5+
6+
```{r}
7+
1 1j1j öj1
8+
```
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: "Parsable Rmd Success"
3+
output: rmarkdown::html_document
4+
---
5+
6+
```{r}
7+
call()
8+
```

tests/testthat/test-all.R

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,21 @@ run_test(
104104

105105
# success
106106
run_test("parsable-R",
107-
suffix = "-success.R",
108-
error_msg = NULL
107+
suffix = "-success.R",
108+
error_msg = NULL
109+
)
110+
111+
run_test("parsable-R",
112+
suffix = "-success.Rmd",
113+
error_msg = NULL
109114
)
110115

111116
# failure
112117
run_test("parsable-R", suffix = "-fail.R", error_msg = "not parsable")
113118

119+
run_test("parsable-R", suffix = "-fail.Rmd", error_msg = "not parsable")
120+
121+
114122

115123
### . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..
116124
### spell-check ####

0 commit comments

Comments
 (0)