Skip to content

Commit

Permalink
test: refactor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago committed Oct 30, 2023
1 parent 61f62d3 commit cd9d559
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/forge2d/test/dynamics/body_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import 'package:test/scaffolding.dart';

void main() {
group('Body', () {
group('bullet', () {
group('isBullet', () {
test('is false by default', () {
final body = Body(BodyDef(), World());
expect(body.isBullet, equals(false));
});

test('can change', () {
final body = Body(BodyDef(), World());
const newBulletValue = true;
Expand Down

0 comments on commit cd9d559

Please sign in to comment.