Skip to content

Commit eceac2d

Browse files
committed
move data inside test_that()
1 parent b1e2f5a commit eceac2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test_nearest_neighbor.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
hpc <- hpc_data[1:150, c(2:5, 8)]
2-
31
test_that('updating', {
42
expect_snapshot(
53
nearest_neighbor(neighbors = 5) %>%
@@ -15,6 +13,8 @@ test_that('bad input', {
1513

1614
test_that('check_args() works', {
1715
skip_if_not_installed("kknn")
16+
17+
hpc <- hpc_data[1:150, c(2:5, 8)]
1818

1919
expect_snapshot(
2020
error = TRUE,

0 commit comments

Comments
 (0)