mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
fix for multi_id and commands starting with h
This commit is contained in:
@ -383,4 +383,14 @@ TEST_CASE("All stuff"){
|
||||
REQUIRE(p.receiver_id()==2);
|
||||
REQUIRE(p.multi_id() == 3);
|
||||
REQUIRE(p.command() == "exptime");
|
||||
}
|
||||
|
||||
TEST_CASE("Parse a command that has -h in it"){
|
||||
CmdParser p;
|
||||
p.Parse("1-hostname somepc");
|
||||
REQUIRE(p.multi_id() == 1);
|
||||
REQUIRE(p.command() == "hostname");
|
||||
REQUIRE(p.arguments().size() == 1);
|
||||
REQUIRE(p.arguments()[0]== "somepc");
|
||||
|
||||
}
|
Reference in New Issue
Block a user