Skip to content

Commit

Permalink
test: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Apr 5, 2024
1 parent e30ab1e commit 6d10e41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/translate.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
---

Code
sub(".*$", "$", math_lines[7])
sub(".*que ", "", math_lines[7])
Output
[1] "$"
[1] "$\\alpha=1$ y $b$ no está definida."

---

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-translate.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,6 @@ test_that("deepl_translate() handles equations well", {
})
math_lines <- brio::read_lines(out_path)
expect_snapshot(math_lines[4])
expect_snapshot(sub(".*$", "$", math_lines[7]))
expect_snapshot(sub(".*que ", "", math_lines[7]))
expect_snapshot(math_lines[9])
})

0 comments on commit 6d10e41

Please sign in to comment.