Skip to content

20.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 02:42

Description

Abstract

Previously, INF is parsed as std::numeric_limits<double>::max() in openscenario_interpreter::Double.
But in this pull-request, I treat INF as std::numeric_limits<double>::infinity().

Background

In some use cases, I want to check if the value parsed by openscenario_interpreter::Double is inifinity using std::isinf.

Details

a bug fix to read -INF as positive infinity

Due to a mistake in the regular expression, there was a bug where -INF was interpreted as positive infinity.
This bug was discovered while adding unit tests, and the tests warranted a fix.

References

Regression Test: OK

Destructive Changes

The parsed result of INF in scenarios are changed.
From a comparative perspective, there is no difference.

Known Limitations

None

Related Issues