Skip to content

Commit 87898af

Browse files
committed
correct the test type
1 parent 0359729 commit 87898af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inst/unitTests/runit.sugar.var.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ if (.runThisTest) {
2727
f2 <- Rcpp::cppFunction('double myVar(IntegerVector x) { return(var(x)); }')
2828
f3 <- Rcpp::cppFunction('double myVar(ComplexVector x) { return(var(x)); }')
2929
f4 <- Rcpp::cppFunction('double myVar(LogicalVector x) { return(var(x)); }')
30-
checkEquals(f1(1:10), var(1:10))
30+
checkEquals(f1((1:10) * 1.1), var((1:10) * 1.1))
3131
checkEquals(f2(1:10), var(1:10))
32-
checkEquals(f3(1:10 + (1 + 1i)), var(1:10))
32+
checkEquals(f3(1:10 + (1 + 1i)), var(1:10 + (1 + 1i)))
3333
checkEquals(f4(c(T, F, T, F, T)), var(c(T, F, T, F, T)))
3434
}
3535

0 commit comments

Comments
 (0)