Skip to content

Commit cfdd305

Browse files
committed
tweak test
1 parent 06d5576 commit cfdd305

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

tests/testthat/_snaps/div-cast.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
return out_;
323323
}
324324

325-
# division in my_mean maintains double precision
325+
# division example in #33
326326

327327
Code
328328
fn

tests/testthat/test-div-cast.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ test_that("division casts complex", {
5151
real <- -2:2
5252
imag <- rev(real)
5353
a <- complex(real = real, imaginary = imag)
54-
b <- sample(a[a != 0+0i], length(a), replace = TRUE)
54+
b <- sample(a[a != 0 + 0i], length(a), replace = TRUE)
5555
expect_quick_equal(div_cplx, list(a, b))
5656
})
5757

5858

59-
test_that("division in my_mean maintains double precision", {
59+
test_that("division example in #33", {
6060
my_mean <- function(x) {
6161
declare(type(x = double(NA)))
6262
mu <- sum(x) / length(x)
@@ -68,4 +68,3 @@ test_that("division in my_mean maintains double precision", {
6868
x <- c(3, 5, 7, 8)
6969
expect_quick_equal(my_mean, list(x))
7070
})
71-

0 commit comments

Comments
 (0)