mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[commands] Enhance Command Sendable implementations (#4822)
This commit is contained in:
@@ -198,3 +198,10 @@ TEST_F(CommandDecoratorTest, HandleInterrupt) {
|
||||
// if `second == 1`, the second lambda ran before the first one
|
||||
EXPECT_EQ(2, second);
|
||||
}
|
||||
|
||||
TEST_F(CommandDecoratorTest, WithName) {
|
||||
InstantCommand command;
|
||||
std::string name{"Named"};
|
||||
CommandPtr named = std::move(command).WithName(name);
|
||||
EXPECT_EQ(name, named.get()->GetName());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user