mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
[commands] Enhance Command Sendable implementations (#4822)
This commit is contained in:
@@ -291,4 +291,12 @@ class CommandDecoratorTest extends CommandTestBase {
|
||||
assertEquals(2, second.get());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void withNameTest() {
|
||||
InstantCommand command = new InstantCommand();
|
||||
String name = "Named";
|
||||
Command named = command.withName(name);
|
||||
assertEquals(name, named.getName());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user