# will produce lints
lint(
text = "expect_equal(x, TRUE)",
linters = expect_true_false_linter()
)
lint(
text = "expect_equal(x, FALSE)",
linters = expect_true_false_linter()
)
# okay
lint(
text = "expect_true(x)",
linters = expect_true_false_linter()
)
lint(
text = "expect_false(x)",
linters = expect_true_false_linter()
)
Run the code above in your browser using DataLab