Skip to content

Commit

Permalink
Adds extra llamagpt test
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Apr 8, 2024
1 parent 15662d1 commit 81461ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/testthat/_snaps/backend-llamagpt.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@
[1] "--threads" "4" "--temp" "0.01" "--n_predict"
[6] "1000" "--model"

# Output works as expected

Code
ch_llamagpt_output("tests\n> ", stream = TRUE)
Output
tests
[1] "tests\n"

6 changes: 6 additions & 0 deletions tests/testthat/test-backend-llamagpt.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,9 @@ test_that("Args output is correct", {
out <- out[!model_line]
expect_snapshot(out)
})

test_that("Output works as expected", {
expect_snapshot(
ch_llamagpt_output("tests\n> ", stream = TRUE)
)
})

0 comments on commit 81461ed

Please sign in to comment.