Closed egnha closed 7 years ago
Examples:
vld_identical(2L, ~length(x))
vld_equal(2, ~length(x))
vld_inherits("simpleError", ~cnd)
It might be useful to have a general constructor for comparison predicates (although, technically, every predicate is a comparison predicate with respect to isTRUE).
isTRUE
Implemented on quosures branch.
Examples:
vld_identical(2L, ~length(x))
vld_equal(2, ~length(x))
vld_inherits("simpleError", ~cnd)
It might be useful to have a general constructor for comparison predicates (although, technically, every predicate is a comparison predicate with respect to
isTRUE
).