Skip to content

Commit

Permalink
#1839 Fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav committed Dec 2, 2024
1 parent 963cdf6 commit 73a0636
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
7 changes: 6 additions & 1 deletion R/my_first_fcn.R
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!"
}
15 changes: 15 additions & 0 deletions man/my_first_fcn.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions tests/testthat/test-my_first_fcn.R
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)
})

0 comments on commit 73a0636

Please sign in to comment.