[commands] Rename Command.repeat to repeatedly (#4379)

This commit is contained in:
OmegaMetor
2022-08-29 17:20:17 -05:00
committed by GitHub
parent 9e24c6eac0
commit f2a8d38d2a
8 changed files with 10 additions and 10 deletions

View File

@@ -26,15 +26,15 @@ class RepeatCommandTest {
var isFinishedHook = new AtomicBoolean(false);
final var command =
new RepeatCommand(
new FunctionalCommand(
new FunctionalCommand(
initCounter::incrementAndGet,
exeCounter::incrementAndGet,
interrupted -> endCounter.incrementAndGet(),
() -> {
isFinishedCounter.incrementAndGet();
return isFinishedHook.get();
}));
})
.repeatedly();
assertEquals(0, initCounter.get());
assertEquals(0, exeCounter.get());

View File

@@ -26,7 +26,7 @@ TEST_F(RepeatCommandTest, CallsMethodsCorrectly) {
isFinishedCounter++;
return isFinishedHook;
})
.Repeat();
.Repeatedly();
EXPECT_EQ(0, initCounter);
EXPECT_EQ(0, exeCounter);