Skip to content

Commit

Permalink
Add test for review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Dec 10, 2023
1 parent a5ec736 commit e807f00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/testthat/test-expect_identical_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ test_that("expect_identical_linter skips cases likely testing numeric equality",
# NB: TRUE is a NUM_CONST so we want test matching it, even though this test is
# also a violation of expect_true_false_linter()
expect_lint("expect_equal(x, TRUE)", lint_msg, linter)

expect_lint("expect_equal(x, 1.01-y)", lint_msg, linter)
})

test_that("expect_identical_linter skips 3e cases needing expect_equal", {
Expand Down

0 comments on commit e807f00

Please sign in to comment.