Skip to content

Commit 26eb4fa

Browse files
Merge pull request #1163 from r-lib/rm-reparsing-test
Remove outdated test about repeated parsing
2 parents cfcdb48 + dc606ef commit 26eb4fa

File tree

4 files changed

+0
-221
lines changed

4 files changed

+0
-221
lines changed

tests/testthat/parsing/repeated_parsing-in.R

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/testthat/parsing/repeated_parsing-in_tree

Lines changed: 0 additions & 152 deletions
This file was deleted.

tests/testthat/parsing/repeated_parsing-out.R

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/testthat/test-parsing.R

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,3 @@
1-
test_that("repreated parsing solves wrong parent assignment", {
2-
expect_warning(
3-
test_collection(
4-
"parsing", "repeated_parsing",
5-
transformer = style_text,
6-
strict = FALSE
7-
),
8-
NA
9-
)
10-
11-
# move to temp dir
12-
dir <- tempfile("styler")
13-
dir.create(dir)
14-
path_temp <- file.path(dir, "repeated_parsing-in.R")
15-
path_perm <- testthat_file("parsing", "repeated_parsing-in.R")
16-
file.copy(path_perm, dir)
17-
18-
sys_call <- paste0(
19-
"R -q -e \"styler::cache_deactivate(); styler::style_file(\\\"", path_temp, "\\\")\""
20-
)
21-
calls_sys(sys_call, intern = FALSE, ignore.stdout = TRUE, ignore.stderr = TRUE)
22-
ref <- read_utf8_bare(testthat_file("parsing", "repeated_parsing-out.R"))
23-
result <- read_utf8_bare(path_temp)
24-
expect_equal(ref, result)
25-
unlink(dir)
26-
})
27-
281
test_that("long strings are parsed correctly", {
292
expect_warning(
303
test_collection("parsing", "long_strings", transformer = style_text),

0 commit comments

Comments
 (0)