Skip to content

Commit e5ecef7

Browse files
Merge pull request #1115 from r-lib/f-snapshots
Add missing snapshots
2 parents 0592e8e + 3170934 commit e5ecef7

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

tests/testthat/_snaps/public_api-1.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# messages (via cat()) of style_file are correct
2+
3+
Code
4+
cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty",
5+
"dirty-sample-with-scope-tokens.R")), sep = "\n")
6+
Output
7+
Styling 1 files:
8+
dirty-sample-with-scope-tokens.R i
9+
----------------------------------------
10+
Status Count Legend
11+
v 0 File unchanged.
12+
i 1 File changed.
13+
x 0 Styling threw an error.
14+
----------------------------------------
15+
Please review the changes carefully!
16+
17+
---
18+
19+
Code
20+
cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty",
21+
"clean-sample-with-scope-tokens.R")), sep = "\n")
22+
Output
23+
Styling 1 files:
24+
clean-sample-with-scope-tokens.R v
25+
----------------------------------------
26+
Status Count Legend
27+
v 1 File unchanged.
28+
i 0 File changed.
29+
x 0 Styling threw an error.
30+
----------------------------------------
31+
32+
---
33+
34+
Code
35+
cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty",
36+
"dirty-sample-with-scope-spaces.R")), sep = "\n")
37+
Output
38+
Styling 1 files:
39+
dirty-sample-with-scope-spaces.R i
40+
----------------------------------------
41+
Status Count Legend
42+
v 0 File unchanged.
43+
i 1 File changed.
44+
x 0 Styling threw an error.
45+
----------------------------------------
46+
Please review the changes carefully!
47+

tests/testthat/_snaps/public_api-3.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# No sensitive to decimal option
2+
3+
Code
4+
style_text("1")
5+
Output
6+
1
7+

0 commit comments

Comments
 (0)