Skip to content

Commit

Permalink
Clean up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Mar 23, 2023
1 parent 0a037c2 commit 19cf68b
Show file tree
Hide file tree
Showing 53 changed files with 3,034 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/testthat/test-aaa-options.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# make_option_impl --------------------------------------------------------------------

test_that("`make_option_impl()` snapshot test", {
expect_snapshot({
make_option_impl()
})
})
25 changes: 25 additions & 0 deletions tests/testthat/test-capital.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# pillar_capital ----------------------------------------------------------------------

test_that("`pillar_capital()` snapshot test", {
expect_snapshot({
pillar_capital()
})
})


# new_pillar_capital ------------------------------------------------------------------

test_that("`new_pillar_capital()` snapshot test", {
expect_snapshot({
new_pillar_capital()
})
})


# format ------------------------------------------------------------------------------

test_that("`format()` snapshot test", {
expect_snapshot({
format()
})
})
79 changes: 79 additions & 0 deletions tests/testthat/test-char.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# char --------------------------------------------------------------------------------

test_that("`char()` snapshot test", {
expect_snapshot({
char()
})
})


# vec_ptype_full ----------------------------------------------------------------------

test_that("`vec_ptype_full()` snapshot test", {
expect_snapshot({
vec_ptype_full()
})
})


# vec_ptype_abbr ----------------------------------------------------------------------

test_that("`vec_ptype_abbr()` snapshot test", {
expect_snapshot({
vec_ptype_abbr()
})
})


# format ------------------------------------------------------------------------------

test_that("`format()` snapshot test", {
expect_snapshot({
format()
})
})


# set_char_opts -----------------------------------------------------------------------

test_that("`set_char_opts()` snapshot test", {
expect_snapshot({
set_char_opts()
})
})


# vec_ptype2.pillar_char --------------------------------------------------------------

test_that("`vec_ptype2.pillar_char()` snapshot test", {
expect_snapshot({
vec_ptype2.pillar_char()
})
})


# vec_ptype2.character ----------------------------------------------------------------

test_that("`vec_ptype2.character()` snapshot test", {
expect_snapshot({
vec_ptype2.character()
})
})


# vec_cast.pillar_char ----------------------------------------------------------------

test_that("`vec_cast.pillar_char()` snapshot test", {
expect_snapshot({
vec_cast.pillar_char()
})
})


# vec_cast.character ------------------------------------------------------------------

test_that("`vec_cast.character()` snapshot test", {
expect_snapshot({
vec_cast.character()
})
})
70 changes: 70 additions & 0 deletions tests/testthat/test-compat-lifecycle.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# scoped_lifecycle_silence ------------------------------------------------------------

test_that("`scoped_lifecycle_silence()` snapshot test", {
expect_snapshot({
scoped_lifecycle_silence()
})
})


# with_lifecycle_silence --------------------------------------------------------------

test_that("`with_lifecycle_silence()` snapshot test", {
expect_snapshot({
with_lifecycle_silence()
})
})


# scoped_lifecycle_warnings -----------------------------------------------------------

test_that("`scoped_lifecycle_warnings()` snapshot test", {
expect_snapshot({
scoped_lifecycle_warnings()
})
})


# with_lifecycle_warnings -------------------------------------------------------------

test_that("`with_lifecycle_warnings()` snapshot test", {
expect_snapshot({
with_lifecycle_warnings()
})
})


# scoped_lifecycle_errors -------------------------------------------------------------

test_that("`scoped_lifecycle_errors()` snapshot test", {
expect_snapshot({
scoped_lifecycle_errors()
})
})


# with_lifecycle_errors ---------------------------------------------------------------

test_that("`with_lifecycle_errors()` snapshot test", {
expect_snapshot({
with_lifecycle_errors()
})
})


# signal_superseded -------------------------------------------------------------------

test_that("`signal_superseded()` snapshot test", {
expect_snapshot({
signal_superseded()
})
})


# foreign_caller_env ------------------------------------------------------------------

test_that("`foreign_caller_env()` snapshot test", {
expect_snapshot({
foreign_caller_env()
})
})
Loading

0 comments on commit 19cf68b

Please sign in to comment.