Skip to content

Instantly share code, notes, and snippets.

@neelsoumya
Last active August 5, 2020 07:28
Show Gist options
  • Select an option

  • Save neelsoumya/3f9c950141ba8dbc36b92818c4faa511 to your computer and use it in GitHub Desktop.

Select an option

Save neelsoumya/3f9c950141ba8dbc36b92818c4faa511 to your computer and use it in GitHub Desktop.
An example to show a testing framework in R using the testthat package
An example to show a testing framework in R using the testthat package
library(testthat)
string <- "Testing is fun! hellooooo..."
expect_match(string, "Testing")
expect_match(string, 'hello', ignore.case = TRUE)
# expect_output(as.character(string), 'hello')
@neelsoumya
Copy link
Author

An example to show a testing framework in R using the testthat package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment