Skip to content

Commit

Permalink
add repeat
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jun 5, 2024
1 parent 1733cc5 commit 88af0cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Backend/move_lists_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ void main() {
moveList.moves.add(Move.move(leftServo: 50, rightServo: 50));
moveList.moves.add(Move.delay(50));
moveList.moves.add(Move.move(leftServo: 50, rightServo: 50));
moveList.repeat = 2;
BaseStatefulDevice baseStatefulDevice = container.read(knownDevicesProvider).values.first;
runAction(moveList, baseStatefulDevice);
});
Expand All @@ -144,9 +145,10 @@ void main() {
expect(container.read(knownDevicesProvider).values.length, 1);
expect(container.read(knownDevicesProvider).values.first.baseDeviceDefinition.btName, 'MiTail');
MoveList moveList = MoveList(name: 'Test', uuid: 'test', deviceCategory: DeviceType.values);
moveList.moves.add(Move.move(leftServo: 50, rightServo: 50));
moveList.moves.add(Move.move(leftServo: 50, rightServo: 50, easingType: EasingType.cubic));
moveList.moves.add(Move.delay(50));
moveList.moves.add(Move.move(leftServo: 50, rightServo: 50));
moveList.repeat = 2;
BaseStatefulDevice baseStatefulDevice = container.read(knownDevicesProvider).values.first;
runAction(moveList, baseStatefulDevice);
});
Expand Down

0 comments on commit 88af0cb

Please sign in to comment.