Skip to content

Update test expectations for chk 0.11.0 - #102

Merged
joethorley merged 2 commits into
mainfrom
chk-0-11-0-error-messages
Jul 15, 2026
Merged

Update test expectations for chk 0.11.0#102
joethorley merged 2 commits into
mainfrom
chk-0-11-0-error-messages

Conversation

@joethorley

Copy link
Copy Markdown
Member

Summary

chk 0.11.0 (about to be submitted to CRAN) changes the chkor_vld() error message format. Each condition now reports the actual class of the object, e.g.

At least one of the following conditions must be met:
* `x` must inherit from S3 class 'term', not S3 class 'character'.
* `x` must inherit from S3 class 'term_rcrd', not S3 class 'character'.

The expectation in test-valid-term.R matched "\x` must inherit from S3 class 'term'[.]", which required a literal period immediately after 'term'` and so no longer matches the new message.

Fix

Drop the trailing [.] so the expectation matches the version-stable substring \x` must inherit from S3 class 'term'`, which appears in both the old and new messages.

Compatibility

The test suite passes with both CRAN chk 0.10.0 and the dev build of chk 0.11.0 (548 passing, 0 failures in each), so this can be merged before or after chk 0.11.0 reaches CRAN.

🤖 Generated with Claude Code

chk 0.11.0 changes the chkor_vld() error message so each condition
includes the actual class (e.g. ", not S3 class 'character'.").
Match on the version-stable substring so the test passes with both
CRAN chk 0.10.0 and chk 0.11.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@joethorley
joethorley marked this pull request as ready for review July 15, 2026 12:11
@joethorley
joethorley merged commit 993c2ff into main Jul 15, 2026
9 checks passed
@joethorley
joethorley deleted the chk-0-11-0-error-messages branch July 15, 2026 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant