Skip to content

Commit e48e45c

Browse files
committed
tests: failing blind double -> int64 conversion
1 parent 4e7e927 commit e48e45c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inst/tests/tests.Rraw

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15090,6 +15090,8 @@ if (test_bit64) {
1509015090
test(2039.21, between(x+maxint, rep(3+maxint, 10L), rep(NA, 10L), incbounds=FALSE), c(head(ans36open, -5L), rep(TRUE, 5)), output="between parallel processing of integer64 took")
1509115091
# must not blindly read integer64 values as doubles when the latter fit into int32, #7164
1509215092
test(2039.22, between(42L, structure(41., class="integer64"), structure(43., class="integer64")), error="x is not integer64 but.*Please align classes")
15093+
# must not blindly convert numeric bounds to integer64, #7164
15094+
test(2039.23, between(as.i64(42), -2^99, -2^98), error="x is integer64 but lower and/or upper are not")
1509315095
options(old)
1509415096
}
1509515097

0 commit comments

Comments
 (0)