Skip to content

Commit

Permalink
Add test for issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
ybkamaleri committed Oct 9, 2023
1 parent c91c427 commit 2a8da1c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Binary file added inst/test-data/alter-manual.rds
Binary file not shown.
8 changes: 8 additions & 0 deletions tests/testthat/test-alter-geo.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test_that("Alter geo manually", {

altOut <- readRDS(system.file("test-data", "alter-manual.rds", package = "norgeo"))
expect_equal(alter_manual(data.table::copy(chgDT), 9999), altOut)
expect_equal(is_delete_index(data.table::copy(chgDT), c(6, 7)), altOut)
expect_false(check_url("https://www.nothing.bla.bla"))
expect_true(check_url("https://www.ap.no"))
})

0 comments on commit 2a8da1c

Please sign in to comment.