tests/testthat/test-s3-integer64.R

test_that("integer64", {
  expect_snapshot({
    construct(bit64::as.integer64(c("-1000", NA, "100000")))
    construct(bit64::as.integer64(NA))
    # NA is stored as the double -0, -1 as NaN, values close to the minimum as negative subnormals
    construct(bit64::as.integer64(c("0", NA, "-1", "-9223372036854775807")))
  })
})

Try the constructive package in your browser

Any scripts or data that you put into this service are public.

constructive documentation built on Oct. 22, 2026, 5:07 p.m.