poissonconsulting / chk

An R package for developers to check user-supplied function arguments
https://poissonconsulting.github.io/chk/
Other
48 stars 4 forks source link

2 tests from test-chk-identical.R fail on PowerPC #121

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago

R version 4.2.3 (2023-03-15) -- "Shortstop Beagle"
Copyright (C) 2023 The R Foundation for Statistical Computing
Platform: powerpc-apple-darwin10.8.0 (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(testthat)
> library(chk)
> 
> test_check("chk")
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 1076 ]

══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-chk-identical.R:52:3'): vld_equal ────────────────────────────
vld_equal(1, 1.001, 0.001) is not TRUE

`actual`:   FALSE
`expected`: TRUE 
── Failure ('test-chk-identical.R:92:3'): vld_equivalent ───────────────────────
vld_equivalent(1, 1.001, 0.001) is not TRUE

`actual`:   FALSE
`expected`: TRUE 

[ FAIL 2 | WARN 0 | SKIP 0 | PASS 1076 ]
Error: Test failures
Execution halted
joethorley commented 1 year ago

Thanks @barracuda156 - I've just removed these test to avoid them failing due to rounding error on some operating systems

barracuda156 commented 1 year ago

@joethorley Thank you!

github-actions[bot] commented 2 weeks ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.