version 1.0.0-rc.14
This commit is contained in:
@@ -135,7 +135,6 @@ TEST_CASE("StatusVector_Plot_OneBin","[StatusVector]") {
|
||||
REQUIRE(plot_out[0].y[0] == Catch::Approx(11));
|
||||
}
|
||||
|
||||
|
||||
TEST_CASE("StatusVector_Plot_NoBinning","[StatusVector]") {
|
||||
StatusVector<uint64_t> status_vector;
|
||||
status_vector.AddElement(5, 11);
|
||||
@@ -150,3 +149,25 @@ TEST_CASE("StatusVector_Plot_NoBinning","[StatusVector]") {
|
||||
REQUIRE(plot_out[0].x[5] == Catch::Approx(5));
|
||||
REQUIRE(plot_out[0].y[5] == Catch::Approx(11));
|
||||
}
|
||||
|
||||
TEST_CASE("StatusMultiVector","[StatusMultiVector]") {
|
||||
StatusMultiVector<uint64_t> status_vector;
|
||||
status_vector.AddElement("plot1", 0, 4);
|
||||
status_vector.AddElement("plot1", 1, 3);
|
||||
status_vector.AddElement("plot2", 0, 5);
|
||||
status_vector.AddElement("plot2", 1, 4);
|
||||
|
||||
auto ret = status_vector.GetMeanPlot(1);
|
||||
REQUIRE(ret.size() == 2);
|
||||
REQUIRE(ret[0].title == "plot1");
|
||||
REQUIRE(ret[0].x.size() == 2);
|
||||
REQUIRE(ret[0].y.size() == 2);
|
||||
REQUIRE(ret[0].x[0] == 0.0f);
|
||||
REQUIRE(ret[0].y[1] == 3.0f);
|
||||
|
||||
REQUIRE(ret[1].title == "plot2");
|
||||
REQUIRE(ret[1].x.size() == 2);
|
||||
REQUIRE(ret[1].y.size() == 2);
|
||||
REQUIRE(ret[1].x[1] == 1.0f);
|
||||
REQUIRE(ret[1].y[1] == 4.0f);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user