From b5fb975bd46d4a444f23047d52bf72959b0cd2f2 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Fri, 6 Oct 2023 21:06:09 +0200 Subject: [PATCH] Update snapshots for testthat 3.2.0 release --- DESCRIPTION | 2 +- tests/testthat/_snaps/contr.deviation.md | 23 +++++++++++++++++++++++ tests/testthat/_snaps/data_rescale.md | 4 ++-- tests/testthat/_snaps/data_separate.md | 2 +- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 tests/testthat/_snaps/contr.deviation.md diff --git a/DESCRIPTION b/DESCRIPTION index 1da935c42..55ed6b449 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -62,7 +62,7 @@ Suggests: rmarkdown, rstanarm, see, - testthat (>= 3.1.6), + testthat (>= 3.2.0), tibble, tidyr, withr diff --git a/tests/testthat/_snaps/contr.deviation.md b/tests/testthat/_snaps/contr.deviation.md new file mode 100644 index 000000000..7b3436578 --- /dev/null +++ b/tests/testthat/_snaps/contr.deviation.md @@ -0,0 +1,23 @@ +# contr.deviation | snapshot + + Code + solve(c.deviation) + Output + 4 6 8 + Intercept 0.3333333 0.3333333 0.3333333 + 6 -1.0000000 1.0000000 0.0000000 + 8 -1.0000000 0.0000000 1.0000000 + +--- + + Code + solve(mm) + Output + cyl4.am0 cyl4.am1 cyl6.am0 cyl6.am1 cyl8.am0 cyl8.am1 + (Intercept) 0.3333333 0.0000000 0.3333333 0.0000000 0.3333333 0.0000000 + cyl6 -1.0000000 0.0000000 1.0000000 0.0000000 0.0000000 0.0000000 + cyl8 -1.0000000 0.0000000 0.0000000 0.0000000 1.0000000 0.0000000 + am1 -0.3333333 0.3333333 -0.3333333 0.3333333 -0.3333333 0.3333333 + cyl6:am1 1.0000000 -1.0000000 -1.0000000 1.0000000 0.0000000 0.0000000 + cyl8:am1 1.0000000 -1.0000000 0.0000000 0.0000000 -1.0000000 1.0000000 + diff --git a/tests/testthat/_snaps/data_rescale.md b/tests/testthat/_snaps/data_rescale.md index 4091116e3..e02d7eb14 100644 --- a/tests/testthat/_snaps/data_rescale.md +++ b/tests/testthat/_snaps/data_rescale.md @@ -2,7 +2,7 @@ Code head(rescale(iris, to = c(0, 1))) - Message + Message Variables of class `factor` can't be rescaled and remain unchanged. Output Sepal.Length Sepal.Width Petal.Length Petal.Width Species @@ -30,7 +30,7 @@ Code head(rescale(iris, to = list(Sepal.Length = c(0, 1), Petal.Length = c(-1, 0)))) - Message + Message Variables of class `factor` can't be rescaled and remain unchanged. Output Sepal.Length Sepal.Width Petal.Length Petal.Width Species diff --git a/tests/testthat/_snaps/data_separate.md b/tests/testthat/_snaps/data_separate.md index e46ee77c2..c3176c7b3 100644 --- a/tests/testthat/_snaps/data_separate.md +++ b/tests/testthat/_snaps/data_separate.md @@ -123,7 +123,7 @@ Code data_separate(d_sep, guess_columns = "mode", select = NULL) - Message + Message Column `x` had different number of values after splitting. Variable was split into 3 columns. `x` returned more columns than expected after splitting. Right-most