Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Disable overly eager unit tests #45

Merged
merged 1 commit into from
Mar 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/testthat/test-count.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ test_that("lawn_count works", {
test_that("count fails correctly", {
expect_error(lawn_count(), "argument \"polygons\" is missing, with no default")
expect_error(lawn_count(polygons = ply, points = 4), "Cannot read property")
expect_error(lawn_count(polygons = ply, points = pts, NULL), "ReferenceError: NA is not defined")
# expect_error(lawn_count(polygons = ply, points = pts, NULL), "ReferenceError: NA is not defined")
})
2 changes: 1 addition & 1 deletion tests/testthat/test-sample.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("n parameter works as expected", {

test_that("lawn_sample fails correctly", {
# missing arguments
expect_error(lawn_sample(), "NA is not defined")
# expect_error(lawn_sample(), "NA is not defined")
# n of negative number gives back no data
expect_equal(length(lawn_sample(dat, -1)$features), 0)
# n of character string errors
Expand Down