Skip to content

Commit df79a10

Browse files
committed
Add tests c() and OP-MINUS combined
1 parent 75a04dd commit df79a10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/testthat/test-expect_identical_linter.R

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ test_that("expect_identical_linter skips cases likely testing numeric equality",
3131

3232
expect_lint("expect_equal(x, 1.034)", NULL, linter)
3333
expect_lint("expect_equal(x, -1.034)", NULL, linter)
34+
expect_lint("expect_equal(x, c(-1.034))", NULL, linter)
35+
expect_lint("expect_equal(x, -c(1.034))", NULL, linter)
36+
3437
expect_lint("expect_equal(x, c(1.01, 1.02))", NULL, linter)
3538
# whole numbers with explicit decimals are OK, even in mixed scenarios
3639
expect_lint("expect_equal(x, c(1.0, 2))", NULL, linter)

0 commit comments

Comments
 (0)