Skip to content

Commit

Permalink
Create testthat.R
Browse files Browse the repository at this point in the history
  • Loading branch information
neelsoumya authored Jan 17, 2022
1 parent 5f236e0 commit 3b91acc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testthat.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# a script to show use of testthat in R

library(testthat)

string <- "Testing is fun! hellooooo..."
expect_match(string, "Testing")
expect_match(string, 'hello', ignore.case = TRUE)
# expect_output(as.character(string), 'hello')

0 comments on commit 3b91acc

Please sign in to comment.