Skip to content

Commit

Permalink
chore: created local 'tests/testthat/test-0_linters.R' from remote 't…
Browse files Browse the repository at this point in the history
…ests/testthat/test-0_linters.R'
  • Loading branch information
RasmusSkytte committed Dec 21, 2023
1 parent 3d9e690 commit ebadbd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/testthat/test-0_linters.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
test_that("non_ascii_linter works", {
lintr::expect_lint("æ", list("line_number" = 1, "type" = "style"), non_ascii_linter()) # nolint start: non_ascii_linter
lintr::expect_lint("\nø", list("line_number" = 2, "type" = "style"), non_ascii_linter())
lintr::expect_lint("\n\nå", list("line_number" = 3, "type" = "style"), non_ascii_linter())
lintr::expect_lint("æ", list("line_number" = 1, "type" = "style"), non_ascii_linter()) # nolint end

lintr::expect_lint("xxx", NULL, non_ascii_linter())
lintr::expect_lint("abc", NULL, non_ascii_linter())
})

0 comments on commit ebadbd8

Please sign in to comment.