Skip to content

Commit

Permalink
increase precision in snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Sep 8, 2024
1 parent eb1aade commit bd62370
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions tests/testthat/_snaps/centrality-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@
df_na[["expression"]]
Output
[[1]]
list(widehat(mu)[mean] == "7.85")
list(widehat(mu)[mean] == "7.853")
[[2]]
list(widehat(mu)[mean] == "6.74")
list(widehat(mu)[mean] == "6.742")
[[3]]
list(widehat(mu)[mean] == "7.38")
list(widehat(mu)[mean] == "7.379")
[[4]]
list(widehat(mu)[mean] == "5.72")
list(widehat(mu)[mean] == "5.715")
[[5]]
list(widehat(mu)[median] == "8.750")
Expand All @@ -140,16 +140,16 @@
list(widehat(mu)[trimmed] == "5.719")
[[13]]
list(widehat(mu)[MAP] == "9.98")
list(widehat(mu)[MAP] == "9.980")
[[14]]
list(widehat(mu)[MAP] == "9.73")
list(widehat(mu)[MAP] == "9.726")
[[15]]
list(widehat(mu)[MAP] == "9.85")
list(widehat(mu)[MAP] == "9.851")
[[16]]
list(widehat(mu)[MAP] == "5.99")
list(widehat(mu)[MAP] == "5.992")

# centrality description works when variable is named `variable`
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-centrality-description.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test_that(
x = alist(am),
y = alist(wt),
type = list("p", "np", "r", "b"),
digits = list(3L, 3L, 3L, 3L),
digits = 3L,
conf.level = list(0.89, 0.99, 0.90, 0.50)
),
.f = centrality_description
Expand All @@ -33,7 +33,7 @@ test_that(
x = alist(condition),
y = alist(desire),
type = list("p", "np", "r", "b"),
digits = list(2L, 3L, 3L, 2L),
digits = 3L,
conf.level = list(0.89, 0.99, 0.90, 0.50)
),
.f = centrality_description
Expand Down

0 comments on commit bd62370

Please sign in to comment.