mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-23 06:50:02 +02:00
additional tests
This commit is contained in:
parent
3100ca448e
commit
671bc62740
@ -393,4 +393,20 @@ TEST_CASE("Parse a command that has -h in it"){
|
||||
REQUIRE(p.arguments().size() == 1);
|
||||
REQUIRE(p.arguments()[0]== "somepc");
|
||||
|
||||
}
|
||||
|
||||
TEST_CASE("Parse a command in the form 0-1 command"){
|
||||
CmdParser p;
|
||||
p.Parse("3-5 exptime");
|
||||
REQUIRE(p.multi_id() == 3);
|
||||
REQUIRE(p.detector_id() == 5);
|
||||
REQUIRE(p.command() == "exptime");
|
||||
}
|
||||
|
||||
TEST_CASE("Parse a command in the form 0-1:command"){
|
||||
CmdParser p;
|
||||
p.Parse("3-5:exptime");
|
||||
REQUIRE(p.multi_id() == 3);
|
||||
REQUIRE(p.detector_id() == 5);
|
||||
REQUIRE(p.command() == "exptime");
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user