@@ -8,50 +8,50 @@ context("test-identify-roxygen-examples.R")
8
8
9
9
test_that(" one function, last tag, properly formatted, no dontrun" , {
10
10
expect_equal(
11
- identify_start_stop_of_roxygen_examples (testthat_file(
11
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
12
12
" identify-roxygen-examples/1-one-function-example-last-proper-run.R"
13
13
)),
14
- list (c(6 , 6 ))
14
+ list (c(6 ))
15
15
)
16
16
17
17
expect_equal(
18
- identify_start_stop_of_roxygen_examples (testthat_file(
18
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
19
19
" identify-roxygen-examples/2-one-function-examples-last-proper-run.R"
20
20
)),
21
- list (c (6 , 11 ))
21
+ list (seq (6 , 11 ))
22
22
)
23
23
})
24
24
25
25
test_that(" one function, not last, tag, properly formatted, no dontrun" , {
26
26
expect_equal(
27
- identify_start_stop_of_roxygen_examples (testthat_file(
27
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
28
28
" identify-roxygen-examples/3-one-function-example-not-last-proper-run.R"
29
29
)),
30
- list (c (5 , 5 ))
30
+ list (seq (5 , 5 ))
31
31
)
32
32
33
33
expect_equal(
34
- identify_start_stop_of_roxygen_examples (testthat_file(
34
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
35
35
" identify-roxygen-examples/4-one-function-examples-not-last-proper-run.R"
36
36
)),
37
- list (c (5 , 9 ))
37
+ list (seq (5 , 9 ))
38
38
)
39
39
})
40
40
41
41
test_that(" multiple functions, last, tag, properly formatted, no dontrun" , {
42
42
expect_equal(
43
- identify_start_stop_of_roxygen_examples (testthat_file(
43
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
44
44
" identify-roxygen-examples/5-multiple-function-examples-last-proper-run.R"
45
45
)),
46
- list (c (5 , 9 ), c (17 , 17 ))
46
+ list (seq (5 , 9 ), seq (17 , 17 ))
47
47
)
48
48
})
49
49
50
50
test_that(" multiple functions, not last, tag, properly formatted, no dontrun" , {
51
51
expect_equal(
52
- identify_start_stop_of_roxygen_examples (testthat_file(
52
+ identify_start_to_stop_of_roxygen_examples (testthat_file(
53
53
" identify-roxygen-examples/6-multiple-function-examples-not-last-proper-run.R"
54
54
)),
55
- list (c (5 , 5 ), c (13 , 17 ))
55
+ list (seq (5 , 5 ), seq (13 , 17 ))
56
56
)
57
57
})
0 commit comments