Skip to content

Test some of the sliver helper classes #7574

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2017
Merged

Conversation

Hixie
Copy link
Contributor

@Hixie Hixie commented Jan 21, 2017

No description provided.

SliverConstraints b = a.copyWith();
expect(a, equals(b));
expect(a.hashCode, equals(b.hashCode));
expect(a.toString(), equals(b.toString()));
Copy link
Contributor

Choose a reason for hiding this comment

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

hasOneLineDescription?

test('SliverGeometry', () {
expect(() {
new SliverGeometry().debugAssertIsValid;
}, isNot(throws));
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just:

expect(new SliverGeometry().debugAssertIsValid(), isTrue)

? The test will fail if that throws.

@abarth
Copy link
Contributor

abarth commented Jan 21, 2017

LGTM

@Hixie Hixie merged commit 84c0b34 into flutter:master Jan 23, 2017
@Hixie Hixie deleted the moartests branch January 23, 2017 21:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants