Skip to content

[math] Drop R interface from stressGoFTest#22446

Merged
dpiparo merged 1 commit into
root-project:masterfrom
guitargeek:gof_tests_r
Jun 2, 2026
Merged

[math] Drop R interface from stressGoFTest#22446
dpiparo merged 1 commit into
root-project:masterfrom
guitargeek:gof_tests_r

Conversation

@guitargeek
Copy link
Copy Markdown
Contributor

The #ifdef ROOT_HAS_R blocks in UnitTest3/4/5 used the R interface at runtime to overwrite the hardcoded expected A2 and Dn values with freshly computed ones. The hardcoded values already match what R produces on the same generated sample, so this added a build-time dependency on the R interface (and the -DROOT_HAS_R define) for no real benefit.

Remove the runtime R calls, the TRInterface.h include and the private R_ADTest / R_KSTest helpers. Each hardcoded reference value now carries an inline // R: ... comment quoting the exact ad.test / ks.test call it was derived from, and the file header documents how to reproduce them by dumping the sample and running R on it.

Also drop the now-unused if(r) block from the test CMakeLists, since no other test in this directory uses the R interface.

This is done in proparation to removing the deprecated R interface.

@guitargeek guitargeek self-assigned this Jun 1, 2026
@guitargeek guitargeek requested a review from bellenot as a code owner June 1, 2026 04:11
The `#ifdef ROOT_HAS_R` blocks in UnitTest3/4/5 used the R interface at
runtime to overwrite the hardcoded expected A2 and Dn values with
freshly computed ones. The hardcoded values already match what R
produces on the same generated sample, so this added a build-time
dependency on the R interface (and the `-DROOT_HAS_R` define) for no
real benefit.

Remove the runtime R calls, the `TRInterface.h` include and the private
`R_ADTest` / `R_KSTest` helpers. Each hardcoded reference value now
carries an inline `// R: ...` comment quoting the exact `ad.test` /
`ks.test` call it was derived from, and the file header documents how
to reproduce them by dumping the sample and running R on it.

Also drop the now-unused `if(r)` block from the test CMakeLists, since
no other test in this directory uses the R interface.

This is done in proparation to removing the deprecated R interface.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

Test Results

    22 files      22 suites   3d 13h 31m 47s ⏱️
 3 863 tests  3 863 ✅ 0 💤 0 ❌
77 124 runs  77 124 ✅ 0 💤 0 ❌

Results for commit 54ed364.

♻️ This comment has been updated with latest results.

@dpiparo dpiparo merged commit 5f38646 into root-project:master Jun 2, 2026
57 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants