Skip to content

Commit

Permalink
lol update tests with - instead of •
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewheiss committed Jun 3, 2024
1 parent f03fb98 commit aa35f18
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 27 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ document. It shows multiple values:
``` text
Overall totals:
--------------------------------
451 total words
378 words in body and notes
- 451 total words
- 378 words in body and notes
Section totals:
--------------------------------
315 words in text body
63 words in notes
53 words in reference section
20 words in appendix section
- 315 words in text body
- 63 words in notes
- 53 words in reference section
- 20 words in appendix section
```

### Shortcodes
Expand Down
12 changes: 6 additions & 6 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ The word count will appear in the terminal output when rendering the document. I
```text
Overall totals:
--------------------------------
451 total words
378 words in body and notes
- 451 total words
- 378 words in body and notes
Section totals:
--------------------------------
315 words in text body
63 words in notes
53 words in reference section
20 words in appendix section
- 315 words in text body
- 63 words in notes
- 53 words in reference section
- 20 words in appendix section
```

### Shortcodes
Expand Down
30 changes: 15 additions & 15 deletions tests/testthat/test-terminal-output.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ test_that("terminal output is correct; no appendix, no notes", {

true_output <- "Overall totals:
--------------------------------
40 total words
6 words in body and notes
- 40 total words
- 6 words in body and notes
Section totals:
--------------------------------
6 words in text body
34 words in reference section
- 6 words in text body
- 34 words in reference section
"

expect_equal(actual_output, true_output)
Expand All @@ -32,15 +32,15 @@ test_that("terminal output is correct; all sections", {

true_output <- "Overall totals:
--------------------------------
47 total words
8 words in body and notes
- 47 total words
- 8 words in body and notes
Section totals:
--------------------------------
6 words in text body
2 words in notes
34 words in reference section
5 words in appendix section
- 6 words in text body
- 2 words in notes
- 34 words in reference section
- 5 words in appendix section
"

expect_equal(actual_output, true_output)
Expand All @@ -57,14 +57,14 @@ test_that("terminal output is correct; singular 'word' works", {

true_output <- "Overall totals:
----------------------------
5 total words
5 words in body and notes
- 5 total words
- 5 words in body and notes
Section totals:
----------------------------
4 words in text body
1 word in notes
- 4 words in text body
- 1 word in notes
"

expect_equal(actual_output, true_output)
})
})

0 comments on commit aa35f18

Please sign in to comment.