# will produce lints
lint(
text = "expect_equal(x, y)",
linters = expect_identical_linter()
)
lint(
text = "expect_true(identical(x, y))",
linters = expect_identical_linter()
)
# okay
lint(
text = "expect_identical(x, y)",
linters = expect_identical_linter()
)
lint(
text = "expect_equal(x, y, check.attributes = FALSE)",
linters = expect_identical_linter()
)
lint(
text = "expect_equal(x, y, tolerance = 1e-6)",
linters = expect_identical_linter()
)
Run the code above in your browser using DataLab