Skip to content

fix units check for upcoming version of units#45

Merged
alwinw merged 1 commit into
alwinw:masterfrom
r-quantities:fix/comparison
Oct 27, 2025
Merged

fix units check for upcoming version of units#45
alwinw merged 1 commit into
alwinw:masterfrom
r-quantities:fix/comparison

Conversation

@Enchufa2
Copy link
Copy Markdown
Contributor

As reported in r-quantities/units#416, there are test failures for this package with the upcoming tokenizer in {units}. In any case, it is not a good idea to grep the deparsed string, because this may change and will change with the new version. This PR makes the check more robust by comparing the units of the input with some known units.

@alwinw
Copy link
Copy Markdown
Owner

alwinw commented Oct 27, 2025

Thanks @Enchufa2! Sorry for the delayed response, had some family medical issues. PR looks great, I'll merge it in and submit an updated version to CRAN

@alwinw alwinw merged commit 1d9f5f1 into alwinw:master Oct 27, 2025
10 checks passed
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.

2 participants