Skip to content

Commit

Permalink
Tests update
Browse files Browse the repository at this point in the history
  • Loading branch information
ebeneditos committed Dec 16, 2018
1 parent 02b3a44 commit 49a7922
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ NULL %||% 2 # returns 2
# functions logic (%&%, %|% and %xor%)
is.null.na <- is.null %|% is.na
all(is.null.na(NA), is.null.na(NULL)) # returns TRUE

# Also 'magrittr' pipe-operators are imported
iris %>% head
```

Also, `magrittr` pipe-operators (such as `%>%`) are imported.
2 changes: 1 addition & 1 deletion tests/testthat/test-except.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ context("except")
test_that("except", {

expect_equal(tryExcept(1), 1)
expect_equal(tryExcept({1; stop()}, {2}), 2)
expect_equal({1; stop()} %except% {2}, 2)

})

0 comments on commit 49a7922

Please sign in to comment.