7 #include "../../../tests/catch2/catch.hpp"
9 #include "../zaberUtils.hpp"
16 SCENARIO(
"Parsing the system.serial response",
"[zaberUtils]" )
18 GIVEN(
"A valid response to system.serial")
22 WHEN(
"Valid response")
24 std::string tstr =
"@01 0 OK IDLE WR 49822@02 0 OK IDLE WR 49820@03 0 OK IDLE WR 49821\n";
26 std::vector<int> address;
27 std::vector<std::string> serial;
36 REQUIRE( serial[0] ==
"49822" );
37 REQUIRE( serial[1] ==
"49820" );
38 REQUIRE( serial[2] ==
"49821" );
int parseSystemSerial(std::vector< int > &address, std::vector< std::string > &serial, const std::string &response)
Parse the system.serial query.
SCENARIO("Parsing the system.serial response", "[zaberUtils]")