test: added multiplier to game state

pull/213/head
RuiAlonso 3 years ago
parent c7a766d0ca
commit a1397e1102

@ -19,6 +19,7 @@ void main() {
final bloc = MockGameBloc(); final bloc = MockGameBloc();
const state = GameState( const state = GameState(
score: 0, score: 0,
multiplier: 1,
balls: 0, balls: 0,
bonusHistory: [], bonusHistory: [],
); );

@ -20,6 +20,7 @@ void main() {
final bloc = MockGameBloc(); final bloc = MockGameBloc();
const state = GameState( const state = GameState(
score: 0, score: 0,
multiplier: 1,
balls: 0, balls: 0,
bonusHistory: [], bonusHistory: [],
); );

@ -14,6 +14,7 @@ void main() {
test('is true when the game over state has changed', () { test('is true when the game over state has changed', () {
final state = GameState( final state = GameState(
score: 10, score: 10,
multiplier: 1,
balls: 0, balls: 0,
bonusHistory: const [], bonusHistory: const [],
); );
@ -63,6 +64,7 @@ void main() {
gameFlowController.onNewState( gameFlowController.onNewState(
GameState( GameState(
score: 10, score: 10,
multiplier: 1,
balls: 0, balls: 0,
bonusHistory: const [], bonusHistory: const [],
), ),

@ -29,6 +29,7 @@ void main() {
const previous = GameState.initial(); const previous = GameState.initial();
const current = GameState( const current = GameState(
score: 10, score: 10,
multiplier: 1,
balls: 3, balls: 3,
bonusHistory: [], bonusHistory: [],
); );
@ -41,6 +42,7 @@ void main() {
() { () {
const current = GameState( const current = GameState(
score: 10, score: 10,
multiplier: 1,
balls: 3, balls: 3,
bonusHistory: [], bonusHistory: [],
); );
@ -65,6 +67,7 @@ void main() {
() { () {
const state = GameState( const state = GameState(
score: 10, score: 10,
multiplier: 1,
balls: 3, balls: 3,
bonusHistory: [], bonusHistory: [],
); );
@ -82,6 +85,7 @@ void main() {
controller.onNewState( controller.onNewState(
const GameState( const GameState(
score: 10, score: 10,
multiplier: 1,
balls: 3, balls: 3,
bonusHistory: [], bonusHistory: [],
), ),
@ -90,6 +94,7 @@ void main() {
controller.onNewState( controller.onNewState(
const GameState( const GameState(
score: 14, score: 14,
multiplier: 1,
balls: 3, balls: 3,
bonusHistory: [], bonusHistory: [],
), ),

@ -11,6 +11,7 @@ void main() {
late GameBloc gameBloc; late GameBloc gameBloc;
const initialState = GameState( const initialState = GameState(
score: 10, score: 10,
multiplier: 1,
balls: 2, balls: 2,
bonusHistory: [], bonusHistory: [],
); );

Loading…
Cancel
Save