-
Notifications
You must be signed in to change notification settings - Fork 6k
Move most of the dart:ui tests to package:test.
#55090
Conversation
testing/dart/color_test.dart
Outdated
| expect(srgb.r, approxEquals(1.0931)); | ||
| expect(srgb.g, approxEquals(-0.22684034705162098)); | ||
| expect(srgb.b, approxEquals(-0.15007957816123998)); | ||
| expect(srgb.r, closeTo(1.0931, 1e4)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you meant 1e-4?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, yes I did.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
gaaclarke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm modulo the delta values. How did we end up with so many negative tests? This is a big parenting no-no, "don't tell your kids what not to do, tell them what they should be doing." =)
gaaclarke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
Work towards flutter/flutter#133569.
There are a couple with custom matchers I'd like to migrate in a follow-up PR.