Skip to content

Commit 8e58a58

Browse files
turn on testthat 3e
1 parent 57e4dad commit 8e58a58

7 files changed

Lines changed: 4 additions & 11 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ Imports:
1414
Suggests:
1515
sf,
1616
sp,
17-
testthat,
17+
testthat (>= 3.0.0),
1818
knitr,
1919
rmarkdown,
2020
ggplot2
21+
testthat/config/edition: 3
2122
VignetteBuilder: knitr
2223
Encoding: UTF-8
2324
RoxygenNote: 7.2.3

tests/testthat.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
library(testthat)
22
library(geohashTools)
33

4+
# TODO(#40): activate this
5+
# options(warn = 2L)
46
test_check('geohashTools')

tests/testthat/test-decode.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context('Geohash decoder')
2-
31
test_that('geohash decoder works', {
42
borobudur = 'qqwkex'
53
akarenga = 'xpkjd5'

tests/testthat/test-encode.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context('Geohash encoder')
2-
31
test_that('geohash encoder works', {
42
y = 0.1234
53
x = 5.6789

tests/testthat/test-gis-tools.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context('GIS tools')
2-
31
test_that('gh_to_sp works', {
42
skip_if_not_installed('sp')
53
mauritius = c('mk2u', 'mk2e', 'mk2g', 'mk35', 'mk3h',

tests/testthat/test-neighbors.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context('Geohash neighborhood')
2-
31
test_that('geohash adjacency list works', {
42
my_turtle_beach = 'w0zpp8'
53
ty_turtle_beach = 'sws374'

tests/testthat/test-utils.R

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
context('Geohash utilities')
2-
31
test_that('gh_delta works', {
42
expect_equal(gh_delta(0L), c(90.0, 180.0))
53

0 commit comments

Comments
 (0)