ProtoBuf: Don't use maps, as these don't preserve order of elements
This commit is contained in:
@@ -1493,14 +1493,20 @@ TEST_CASE("JFJochIntegrationTest_ZMQ_lysozyme_rad_int", "[JFJochReceiver]") {
|
||||
logger.Info("Stopped measurement");
|
||||
|
||||
auto rad_int = state_machine.GetRadialIntegrationProfiles();
|
||||
REQUIRE(rad_int.plots_size() == 4+1);
|
||||
auto &plot_map = rad_int.plots();
|
||||
REQUIRE(plot_map.at("file0").x_size() == 3);
|
||||
REQUIRE(plot_map.at("file0").y_size() == 3);
|
||||
REQUIRE(plot_map.at("file3").x_size() == 3);
|
||||
REQUIRE(plot_map.at("file3").y_size() == 3);
|
||||
REQUIRE(plot_map.at("file3").x(0) == Approx(1.0));
|
||||
REQUIRE(plot_map.at("dataset").x_size() == 3);
|
||||
REQUIRE(rad_int.profiles_size() == 4+1);
|
||||
auto &plot_map = rad_int.profiles();
|
||||
|
||||
CHECK(plot_map[1].title() == "file0");
|
||||
CHECK(plot_map[1].plot().x_size() == 3);
|
||||
CHECK(plot_map[1].plot().y_size() == 3);
|
||||
|
||||
CHECK(plot_map[4].title() == "file3");
|
||||
REQUIRE(plot_map[4].plot().x_size() == 3);
|
||||
CHECK(plot_map[4].plot().x(0) == Approx(1.0));
|
||||
CHECK(plot_map[4].plot().y_size() == 3);
|
||||
|
||||
CHECK(plot_map[0].title() == "dataset");
|
||||
CHECK(plot_map[0].plot().x_size() == 3);
|
||||
|
||||
fpga_receiver_server->Shutdown();
|
||||
writer_server->Shutdown();
|
||||
|
||||
Reference in New Issue
Block a user