Skip to content

Commit

Permalink
fixed new warnings and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfischetti committed Feb 5, 2020
1 parent 21b313e commit d28d780
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: assertr
Type: Package
Title: Assertive Programming for R Analysis Pipelines
Version: 2.6
Version: 2.7
Authors@R: person("Tony", "Fischetti",
email="[email protected]",
role = c("aut", "cre"))
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-assertions.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ test_that("assert breaks appropriately", {
expect_error(assert(in_set(0,1), mtcars$vs),
"assert requires columns to be selected. Check number of arguments")
expect_error(assert(mtcars, in_set(0,1), vs, tree),
"object 'tree' not found")
class="error")
expect_error(assert(mtcars, in_set(0,1), vs, "tree"))
expect_error(assert("tree"),
"argument \"predicate\" is missing, with no default")
Expand Down Expand Up @@ -288,7 +288,7 @@ test_that("assert_rows breaks appropriately", {
expect_error(assert_rows(rowSums, in_set(0,1), mtcars$vs),
"assert_rows requires columns to be selected. Check number of arguments")
expect_error(assert_rows(mtcars, rowSums, in_set(0,1,2), vs, am, tree),
"object 'tree' not found")
class="error")
expect_error(assert_rows(mtcars, rowSums, in_set(0,1,2), vs, am, "tree"))
expect_error(assert_rows("tree"),
"argument \"row_reduction_fn\" is missing, with no default")
Expand Down Expand Up @@ -339,7 +339,7 @@ test_that("insist breaks appropriately", {
"insist requires columns to be selected. Check number of arguments")
expect_error(insist(mtcars, within_n_sds(5), "vs:am"))
expect_error(insist(mtcars, within_n_sds(5), tree),
"object 'tree' not found")
class="error")
expect_error(insist("tree"),
"argument \"predicate_generator\" is missing, with no default")
expect_error(insist(iris, within_n_sds(5), Petal.Width:Species),
Expand Down

0 comments on commit d28d780

Please sign in to comment.