mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-02 01:11:19 +01:00
additional tests
This commit is contained in:
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user