From 3552a41cbf01514cba4c139bd5492dc840ef1966 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Sat, 16 Jul 2022 17:34:43 +0200 Subject: [PATCH] Add a failing test first --- tests/testthat/test-nonportable_path_linter.R | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/testthat/test-nonportable_path_linter.R b/tests/testthat/test-nonportable_path_linter.R index 53df3ebdc..220713969 100644 --- a/tests/testthat/test-nonportable_path_linter.R +++ b/tests/testthat/test-nonportable_path_linter.R @@ -50,4 +50,11 @@ test_that("Non-portable path linter", { expect_lint(single_quote(path), NULL, linter) expect_lint(double_quote(path), NULL, linter) } + + # #1356 + expect_lint( + "grepl('[a/b] c', x, fixed = TRUE)", + NULL, + linter + ) })