Skip to content

Commit

Permalink
Merge pull request #23 from jcrodriguez1989/fix.jcr.use_testthat3e
Browse files Browse the repository at this point in the history
Fix: Use testthat 3e
  • Loading branch information
jcrodriguez1989 authored Mar 18, 2023
2 parents da2ff76 + bfa320a commit aefff06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/create_unit_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
create_unit_tests <- function(code = clipr::read_clip(allow_non_interactive = TRUE)) {
code <- paste(gsub('"', "'", code), collapse = "\n")
prompt <- paste0(
'Create a full testthat file, with test cases for the following R code: "', code, '"'
'Using testthat 3e, version over 3.0.0, create a full testthat file, with test cases for the ',
'following R code: "', code, '"'
)
parse_response(gpt_get_completions(prompt))
}

0 comments on commit aefff06

Please sign in to comment.