Skip to content

Instantly share code, notes, and snippets.

View mathematicalcoffee's full-sized avatar

Amy Chan mathematicalcoffee

  • Australia
View GitHub Profile
@richfitz
richfitz / gist:5056365
Created February 28, 2013 12:21
Negating tests with testthat
library(testthat)
## This works but won't correct labels:
not <- function(f) {
function(...) {
res <- f(...)
res$passed <- !res$passed
res
}
}