16SCENARIO(
"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;
32 REQUIRE( address[0] == 1 );
33 REQUIRE( address[1] == 2 );
34 REQUIRE( address[2] == 3 );
36 REQUIRE( serial[0] ==
"49822" );
37 REQUIRE( serial[1] ==
"49820" );
38 REQUIRE( serial[2] ==
"49821" );