-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vladyslav
committed
Dec 2, 2024
1 parent
963cdf6
commit 73a0636
Showing
3 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
my_first_fcn <- function(hw = TRUE) { | ||
#' Send welcoming message to the user | ||
#' | ||
#' @details | ||
#' This is a function that prints a welcoming message to the terminal that | ||
#' greets the user. | ||
my_first_fcn <- function() { | ||
"Welcome to the admiral family!" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
## Test 1: Veryfying the message function works fine and prints out the message ---- | ||
test_that("multiplication works", { | ||
## Test 1: Verifying the message function works fine and prints out the message ---- | ||
test_that("Message printing works", { | ||
expected_output <- "Welcome to the admiral family!" | ||
|
||
actual_output <- my_first_fcn() | ||
|
||
expect_equal(expected_output, actual_output) | ||
}) |