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

Add integer input tests for lerpDouble#20880

Merged
cbracken merged 1 commit into
flutter-team-archive:masterfrom
cbracken:add-int-tests
Aug 29, 2020
Merged

Add integer input tests for lerpDouble#20880
cbracken merged 1 commit into
flutter-team-archive:masterfrom
cbracken:add-int-tests

Conversation

@cbracken

Copy link
Copy Markdown
Contributor

Description

The a and b parameters to lerpDouble have type num. This adds
tests for integer parameter values.

The `a` and `b` parameters to `lerpDouble` have type `num`. This adds
tests for integer parameter values.
@Hixie

Hixie commented Aug 29, 2020

Copy link
Copy Markdown
Contributor

no null & NaN tests? :-P

LGTM

@cbracken

cbracken commented Aug 29, 2020

Copy link
Copy Markdown
Contributor Author

Haha, added the null/NaN tests in #20871 so they'd get a few minutes of fame before they got replaced. By the time I'm done, here's hoping this thing's going to have at least 5% branch coverage, given all the possible inputs. Now that the tests are there though, it's at least fractionally easier to add em in the future.

@cbracken cbracken merged commit e0122b8 into flutter-team-archive:master Aug 29, 2020
@cbracken cbracken deleted the add-int-tests branch August 29, 2020 23:48
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Development

Successfully merging this pull request may close these issues.

3 participants