mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
587 B
28 lines
587 B
3 years ago
|
import 'package:flutter_test/flutter_test.dart';
|
||
|
import 'package:pinball/game/game.dart';
|
||
|
|
||
|
void main() {
|
||
|
group(
|
||
|
'BoardSide',
|
||
|
() {
|
||
|
test('has two values', () {
|
||
|
expect(BoardSide.values.length, equals(2));
|
||
|
});
|
||
|
},
|
||
|
);
|
||
|
|
||
|
group('BoardSideX', () {
|
||
|
test('isLeft is correct', () {
|
||
|
const side = BoardSide.left;
|
||
|
expect(side.isLeft, isTrue);
|
||
|
expect(side.isRight, isFalse);
|
||
|
});
|
||
|
|
||
|
test('isRight is correct', () {
|
||
|
const side = BoardSide.right;
|
||
|
expect(side.isLeft, isFalse);
|
||
|
expect(side.isRight, isTrue);
|
||
|
});
|
||
|
});
|
||
|
}
|