Skip to content

Commit

Permalink
test added for copyWith in rounded_rectangle_border_test.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
payam-zahedi committed Jul 5, 2021
1 parent fdb7586 commit 796eb6c
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -20,10 +20,17 @@ void main() {
expect(const RoundedRectangleBorder().hashCode, const RoundedRectangleBorder().copyWith().hashCode);
const BorderSide side = BorderSide(width: 10.0, color: Color(0xff123456));
const BorderRadius radius = BorderRadius.all(Radius.circular(16.0));
const BorderRadiusDirectional directionalRadius = BorderRadiusDirectional.all(Radius.circular(16.0));

expect(
const RoundedRectangleBorder().copyWith(side: side, borderRadius: radius),
const RoundedRectangleBorder(side: side, borderRadius: radius),
);

expect(
const RoundedRectangleBorder().copyWith(side: side, borderRadius: directionalRadius),
const RoundedRectangleBorder(side: side, borderRadius: directionalRadius),
);
});

test('RoundedRectangleBorder', () {
Expand Down

0 comments on commit 796eb6c

Please sign in to comment.