Skip to content

Commit fa90de7

Browse files
fix identify_roxygen example tests
1 parent 19f2723 commit fa90de7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/testthat/test-identify-roxygen-examples.R

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,50 +8,50 @@ context("test-identify-roxygen-examples.R")
88

99
test_that("one function, last tag, properly formatted, no dontrun", {
1010
expect_equal(
11-
identify_start_stop_of_roxygen_examples(testthat_file(
11+
identify_start_to_stop_of_roxygen_examples(testthat_file(
1212
"identify-roxygen-examples/1-one-function-example-last-proper-run.R"
1313
)),
14-
list(c(6, 6))
14+
list(c(6))
1515
)
1616

1717
expect_equal(
18-
identify_start_stop_of_roxygen_examples(testthat_file(
18+
identify_start_to_stop_of_roxygen_examples(testthat_file(
1919
"identify-roxygen-examples/2-one-function-examples-last-proper-run.R"
2020
)),
21-
list(c(6, 11))
21+
list(seq(6, 11))
2222
)
2323
})
2424

2525
test_that("one function, not last, tag, properly formatted, no dontrun", {
2626
expect_equal(
27-
identify_start_stop_of_roxygen_examples(testthat_file(
27+
identify_start_to_stop_of_roxygen_examples(testthat_file(
2828
"identify-roxygen-examples/3-one-function-example-not-last-proper-run.R"
2929
)),
30-
list(c(5, 5))
30+
list(seq(5, 5))
3131
)
3232

3333
expect_equal(
34-
identify_start_stop_of_roxygen_examples(testthat_file(
34+
identify_start_to_stop_of_roxygen_examples(testthat_file(
3535
"identify-roxygen-examples/4-one-function-examples-not-last-proper-run.R"
3636
)),
37-
list(c(5, 9))
37+
list(seq(5, 9))
3838
)
3939
})
4040

4141
test_that("multiple functions, last, tag, properly formatted, no dontrun", {
4242
expect_equal(
43-
identify_start_stop_of_roxygen_examples(testthat_file(
43+
identify_start_to_stop_of_roxygen_examples(testthat_file(
4444
"identify-roxygen-examples/5-multiple-function-examples-last-proper-run.R"
4545
)),
46-
list(c(5, 9), c(17, 17))
46+
list(seq(5, 9), seq(17, 17))
4747
)
4848
})
4949

5050
test_that("multiple functions, not last, tag, properly formatted, no dontrun", {
5151
expect_equal(
52-
identify_start_stop_of_roxygen_examples(testthat_file(
52+
identify_start_to_stop_of_roxygen_examples(testthat_file(
5353
"identify-roxygen-examples/6-multiple-function-examples-not-last-proper-run.R"
5454
)),
55-
list(c(5, 5), c(13, 17))
55+
list(seq(5, 5), seq(13, 17))
5656
)
5757
})

0 commit comments

Comments
 (0)