Skip to content

Commit 62b3e8e

Browse files
skip tests which fail on ancient versions of bit64
1 parent 6cc5a32 commit 62b3e8e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

inst/tests/optimize.Rraw

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ dt = data.table(x = sample(letters, 300, TRUE),
192192
i2 = sample(c(-10:10, NA), 300, TRUE),
193193
d1 = as.numeric(sample(-10:10, 300, TRUE)),
194194
d2 = as.numeric(sample(c(NA, NaN, -10:10), 300, TRUE)))
195-
if (test_bit64) {
195+
# is.na() test for ancient {bit64} on ancient R
196+
if (test_bit64 && is.na(integer64()[1L])) {
196197
dt[, `:=`(d3 = as.integer64(sample(-10:10, 300, TRUE)))]
197198
dt[, `:=`(d4 = as.integer64(sample(c(-10:10,NA), 300, TRUE)))]
198199
}

0 commit comments

Comments
 (0)