Skip to content

Commit

Permalink
#1839 Dummy function created
Browse files Browse the repository at this point in the history
  • Loading branch information
ashachakma committed Jun 14, 2023
1 parent 948673e commit 87607a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions R/my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
hello_admiral <- function(){
{
message("Welcome to the admiral family!")
}
}

Empty file added R/test-my_first_fcn.R
Empty file.
7 changes: 7 additions & 0 deletions tests/testthat/test-my_first_fcn.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Test 1: hello_admiral function greets ----
test_that("my_first_fcn Test 1: hello_admiral function greets", {
expect_message(
hello_admiral(),
"Welcome to the admiral family!"
)
})

0 comments on commit 87607a9

Please sign in to comment.