Skip to content

Commit

Permalink
Add small tests about radius/angle
Browse files Browse the repository at this point in the history
radius and angle must be always NA if they are not filled in at media level obsrevations too.
  • Loading branch information
damianooldoni committed Dec 22, 2023
1 parent bd6a364 commit 2f3729e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/testthat/test-read_camtrap_dp.R
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,12 @@ test_that(
}
)

test_that(
"read observations v1.0: radius is NA as NA in media based obs too", {
expect_true(all(is.na(dp_v1_with_media$data$observations$radius)))
}
)

test_that(
"read observations v1.0: individualPositionAngle is renamed as angle", {
expect_false(
Expand All @@ -542,6 +548,12 @@ test_that(
}
)

test_that(
"read observations v1.0: angle is NA as NA in media based obs too", {
expect_true(all(is.na(dp_v1_with_media$data$observations$angle)))
}
)

test_that(
"read observations v1.0: bounding box related columns are not present", {
expect_false(
Expand Down

0 comments on commit 2f3729e

Please sign in to comment.