From 24f542e22221b355a5a74ed4f79f42b06ee5e384 Mon Sep 17 00:00:00 2001 From: Allison Ryan Date: Thu, 24 Mar 2022 09:45:30 -0500 Subject: [PATCH] test: fix failing tests --- test/game/components/ball_test.dart | 8 ++++---- test/game/components/bonus_word_test.dart | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/game/components/ball_test.dart b/test/game/components/ball_test.dart index f94c1526..f360ca8b 100644 --- a/test/game/components/ball_test.dart +++ b/test/game/components/ball_test.dart @@ -38,7 +38,7 @@ void main() { group('can be moved', () { flameTester.test('by its weight', (game) async { - final ball = Ball(); + final ball = Ball()..initialPosition = Vector2(0, 10); await game.ensureAdd(ball); game.update(1); @@ -46,7 +46,7 @@ void main() { }); flameTester.test('by applying velocity', (game) async { - final ball = Ball(); + final ball = Ball()..initialPosition = Vector2(0, 10); await game.ensureAdd(ball); ball.body.gravityScale = 0; @@ -201,7 +201,7 @@ void main() { flameTester.test( 'by its weight when previously stopped', (game) async { - final ball = Ball(); + final ball = Ball()..initialPosition = Vector2(0, 10); await game.ensureAdd(ball); ball.stop(); ball.resume(); @@ -214,7 +214,7 @@ void main() { flameTester.test( 'by applying velocity when previously stopped', (game) async { - final ball = Ball(); + final ball = Ball()..initialPosition = Vector2(0, 10); await game.ensureAdd(ball); ball.stop(); ball.resume(); diff --git a/test/game/components/bonus_word_test.dart b/test/game/components/bonus_word_test.dart index a12a5a74..34cfa441 100644 --- a/test/game/components/bonus_word_test.dart +++ b/test/game/components/bonus_word_test.dart @@ -187,7 +187,7 @@ void main() { final fixture = bonusLetter.body.fixtures[0]; expect(fixture.shape.shapeType, equals(ShapeType.circle)); - expect(fixture.shape.radius, equals(2)); + expect(fixture.shape.radius, equals(1.85)); }, ); });