Skip to content

[Enhancement]: relative tolerance for test_rules #573

@ThijsJenneskens

Description

@ThijsJenneskens

Feature/Enhancement Description

Allow relative tolerance to be specified in testing rules, the same way absolute tolerance is currently specified. An example call would look like:

@test_rules [check_type_promotion = true, rtol = 1e-4] ...,

etc.

Motivation / Use Case

It would be useful for testing the numerical stability of rules, where the inputs are huge or tiny numbers.

Proposed Solution

An example call would look like:

@test_rules [check_type_promotion = true, rtol = 1e-4] ...,

Alternatives Considered

The 'isapprox' function is being called under the hood, so specifying the relative tolerance manually is difficult.

Example Use Cases

No response

Priority (from your perspective)

Important

Related Issues / Discussions

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions