Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
aviator-app[bot] authored Apr 16, 2024
1 parent b867e82 commit f46528e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/testthat/_snaps/demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ An initial NEWS file can be created with `usethis::use_news_md()`.

```r
usethis::use_news_md()
## v Writing 'NEWS.md'.
## v Writing 'NEWS.md'
```

Let's take a look at the contents:
Expand Down Expand Up @@ -170,7 +170,7 @@ We start by creating the new R file called `cup.R` and adding code (well only a

```r
usethis::use_r("cup")
## [ ] Edit 'R/cup.R'.
## * Edit 'R/cup.R'
writeLines("# cup", "R/cup.R")
```

Expand Down Expand Up @@ -206,12 +206,12 @@ The code in `cup.R` warrants a test (at least it would if it were actual code!):

```r
usethis::use_test("cup")
## v Adding testthat to 'Suggests' field in DESCRIPTION.
## v Adding "3" to 'Config/testthat/edition'.
## v Creating 'tests/testthat/'.
## v Writing 'tests/testthat.R'.
## v Writing 'tests/testthat/test-cup.R'.
## [ ] Edit 'tests/testthat/test-cup.R'.
## v Adding 'testthat' to Suggests field in DESCRIPTION
## v Adding '3' to Config/testthat/edition
## v Creating 'tests/testthat/'
## v Writing 'tests/testthat.R'
## v Writing 'tests/testthat/test-cup.R'
## * Edit 'tests/testthat/test-cup.R'
cat(readLines("tests/testthat/test-cup.R"), sep = "\n")
## test_that("multiplication works", {
## expect_equal(2 * 2, 4)
Expand Down Expand Up @@ -413,8 +413,8 @@ This time we write the tests first, test-driven development.

```r
usethis::use_test("bowl")
## v Writing 'tests/testthat/test-bowl.R'.
## [ ] Edit 'tests/testthat/test-bowl.R'.
## v Writing 'tests/testthat/test-bowl.R'
## * Edit 'tests/testthat/test-bowl.R'
```


Expand All @@ -427,7 +427,7 @@ gert::git_commit("Add bowl tests.")

```r
usethis::use_r("bowl")
## [ ] Edit 'R/bowl.R'.
## * Edit 'R/bowl.R'
writeLines("# bowl of tea", "R/bowl.R")
```

Expand Down

0 comments on commit f46528e

Please sign in to comment.