Skip to content

Commit

Permalink
Add psl corners
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsawriot committed Sep 25, 2023
1 parent 3431434 commit 489877b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-psl.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,9 @@ test_that("public suffix works on complete list", {
psla <- public_suffix(urls)
expect_true(all(psla == psl$fixed))
})

test_that("corners", {
expect_equal(public_suffix(NA), NA_character_)
expect_equal(public_suffix(NULL), character(0))
expect_equal(public_suffix(""), NA_character_)
})

0 comments on commit 489877b

Please sign in to comment.