Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ufrshubham committed Dec 16, 2023
1 parent f6d4b6c commit 61be9fe
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ void main() {
);
});

test('update bounds while target is null', () {
final circle1 = Circle(Vector2.zero(), 10);
final circle2 = Circle(Vector2.all(30), 10);
final boundedPositionBehavior = BoundedPositionBehavior(bounds: circle1);
expect(() => boundedPositionBehavior.bounds = circle2, returnsNormally);
});

testWithFlameGame('bad parent', (game) async {
final shape = Circle(Vector2.zero(), 10);
final parent = Component()..addToParent(game);
Expand Down

0 comments on commit 61be9fe

Please sign in to comment.