Skip to content

Commit 5e9b756

Browse files
committed
Better Test Expectations in C++
Also adds Java Consistency
1 parent 54aa6c9 commit 5e9b756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wpilibNewCommands/src/test/native/cpp/frc2/command/CommandDecoratorTest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ TEST_F(CommandDecoratorTest, RepeatedlyCount) {
408408
auto command = InstantCommand([&counter] { counter++; }, {}).Repeatedly(3);
409409

410410
scheduler.Schedule(command);
411-
EXPECT_TRUE(scheduler.IsScheduled(command));
411+
EXPECT_EQ(1, counter);
412412
for (int i = 1; i < 3; i++) {
413413
scheduler.Run();
414414
EXPECT_EQ(i, counter);

0 commit comments

Comments
 (0)