From 3b91acceec8771b191a5d4ee148e766267029c3e Mon Sep 17 00:00:00 2001 From: Soumya Banerjee Date: Mon, 17 Jan 2022 15:00:16 +0000 Subject: [PATCH] Create testthat.R --- testthat.R | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testthat.R diff --git a/testthat.R b/testthat.R new file mode 100644 index 0000000..6ebc957 --- /dev/null +++ b/testthat.R @@ -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')