Skip to content

Commit

Permalink
move data inside test_that()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Apr 10, 2024
1 parent b1e2f5a commit eceac2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_nearest_neighbor.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
hpc <- hpc_data[1:150, c(2:5, 8)]

test_that('updating', {
expect_snapshot(
nearest_neighbor(neighbors = 5) %>%
Expand All @@ -15,6 +13,8 @@ test_that('bad input', {

test_that('check_args() works', {
skip_if_not_installed("kknn")

hpc <- hpc_data[1:150, c(2:5, 8)]

expect_snapshot(
error = TRUE,
Expand Down

0 comments on commit eceac2d

Please sign in to comment.