Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@cbracken
Copy link
Member

@cbracken cbracken commented Aug 28, 2020

Description

Adds tests for lerpDouble for cases where NaN or infinite values are passed. These tests simply specify the current behaviour.

Followup to #20778

@cbracken cbracken marked this pull request as draft August 28, 2020 07:25
@cbracken cbracken requested a review from Hixie August 28, 2020 07:30
@cbracken cbracken marked this pull request as ready for review August 28, 2020 07:30
Copy link
Contributor

@Hixie Hixie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Adds tests for lerpDouble for cases where NaN or infinite values are
passed. These tests simply specify the current behaviour.
expect(lerpDouble(double.nan, double.nan, double.nan), isNaN);
});

test('lerpDouble returns NaN if interpolation results in Infinity - Infinity', () {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like there has to be a better way to word this, but can't think of anything great.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants