deparsesTo: Returns a function that checks whether its _argument_...

Description Usage Arguments Examples

View source: R/hamcrest.R

Description

Deparsing transforms unevaluated expressions into character vectors.

Usage

1
deparsesTo(expected)

Arguments

expected

object passed to the matcher function.

Examples

1
2
3
4
## Not run: 
assertThat(unlist(quote(sin(3.14)), recursive = FALSE), deparsesTo("sin(3.14)"))

## End(Not run)

bedatadriven/hamcrest documentation built on Dec. 1, 2019, 1:49 p.m.