1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-04-17
Description: Test skipped on i386 due to floating point precision issues
Forwarded: no since R does not support i386 any more
--- a/tests/testthat/test-integer64.R
+++ b/tests/testthat/test-integer64.R
@@ -78,7 +78,9 @@ test_that("arithmetic & basic math works
expect_identical(sqrt(as.integer64(c(0L, 1L, 4L, 9L))), as.numeric(0:3))
expect_identical(log(x), log(as.numeric(x)))
+if (tolower(R.version$arch) != "i686") {
expect_identical(log(as.integer64(c(1L, 2L, 4L, 8L)), base=2L), as.numeric(0:3))
+}
expect_identical(log2(as.integer64(c(1L, 2L, 4L, 8L))), as.numeric(0:3))
# TODO(#48): Improve the numerical precision here.
expect_identical(log10(as.integer64(c(1L, 10L, 100L, 1000L))), as.numeric(0:3), tolerance=1e-7)
|