diff --git a/tests/testthat/_snaps/public_api-1.md b/tests/testthat/_snaps/public_api-1.md new file mode 100644 index 000000000..da7b965ef --- /dev/null +++ b/tests/testthat/_snaps/public_api-1.md @@ -0,0 +1,47 @@ +# messages (via cat()) of style_file are correct + + Code + cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty", + "dirty-sample-with-scope-tokens.R")), sep = "\n") + Output + Styling 1 files: + dirty-sample-with-scope-tokens.R i + ---------------------------------------- + Status Count Legend + v 0 File unchanged. + i 1 File changed. + x 0 Styling threw an error. + ---------------------------------------- + Please review the changes carefully! + +--- + + Code + cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty", + "clean-sample-with-scope-tokens.R")), sep = "\n") + Output + Styling 1 files: + clean-sample-with-scope-tokens.R v + ---------------------------------------- + Status Count Legend + v 1 File unchanged. + i 0 File changed. + x 0 Styling threw an error. + ---------------------------------------- + +--- + + Code + cat(catch_style_file_output(file.path("public-api", "xyzdir-dirty", + "dirty-sample-with-scope-spaces.R")), sep = "\n") + Output + Styling 1 files: + dirty-sample-with-scope-spaces.R i + ---------------------------------------- + Status Count Legend + v 0 File unchanged. + i 1 File changed. + x 0 Styling threw an error. + ---------------------------------------- + Please review the changes carefully! + diff --git a/tests/testthat/_snaps/public_api-3.md b/tests/testthat/_snaps/public_api-3.md new file mode 100644 index 000000000..1e18d4101 --- /dev/null +++ b/tests/testthat/_snaps/public_api-3.md @@ -0,0 +1,7 @@ +# No sensitive to decimal option + + Code + style_text("1") + Output + 1 +