Skip to content

Commit

Permalink
Simplify and shorten the descriptive comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Jul 16, 2023
1 parent 54b1d19 commit 2230fa3
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions R/get_test_for_function_calls.R
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ get_templates <- function()
{
templates <- list(
intro = "<intro_1>\n<intro_2>\n<intro_3>\n<intro_4>",
intro_1 = "#\n# This test file has been generated by <test_creator>",
intro_2 = "# launched by user <user> on <datetime>.",
intro_3 = "# Your are strongly encouraged to modify the dummy functions",
intro_4 = "# so that real cases are tested. <hint_delete>\n#\n",
hint_delete = "You should then delete this comment.",
test_creator = "kwb.test::create_test_files()",
intro_1 = "#\n# This file was generated by kwb.test::create_test_files(), ",
intro_2 = "# launched by <user> on <datetime>.",
intro_3 = "# Please modify the dummy functions so that real cases are",
intro_4 = "# tested. Then, delete this comment.\n#\n",
test_that_call = "test_that(\"<fun>() works\", {\n\n<test_that_body>})",
fun_call = "<pkg_fun>(<args>)",
fun_call_alone = " <fun_call>\n",
Expand Down

0 comments on commit 2230fa3

Please sign in to comment.