File: ignore_tests_on_some_architectures.patch

package info (click to toggle)
r-cran-bit64 4.6.0-1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 992 kB
  • sloc: ansic: 6,468; sh: 17; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
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)