# will produce lints
lint(
text = "expect_equal(x, NULL)",
linters = expect_null_linter()
)
lint(
text = "expect_identical(x, NULL)",
linters = expect_null_linter()
)
lint(
text = "expect_true(is.null(x))",
linters = expect_null_linter()
)
# okay
lint(
text = "expect_null(x)",
linters = expect_null_linter()
)
Run the code above in your browser using DataLab