version 1.0.0-rc.26 quick fixes
This commit is contained in:
@@ -173,3 +173,24 @@ TEST_CASE("StatusMultiVector","[StatusMultiVector]") {
|
||||
REQUIRE(ret[1].x[1] == 1.0f);
|
||||
REQUIRE(ret[1].y[1] == 4.0f);
|
||||
}
|
||||
|
||||
TEST_CASE("StatusVector_Clear","[StatusVector]") {
|
||||
StatusVector<uint64_t> status_vector;
|
||||
status_vector.AddElement(5, 800);
|
||||
status_vector.AddElement(8, 1000);
|
||||
REQUIRE(status_vector.Mean() == 900);
|
||||
|
||||
status_vector.Clear();
|
||||
REQUIRE(!std::isfinite(status_vector.Mean()));
|
||||
|
||||
status_vector.AddElement(50, 200);
|
||||
status_vector.AddElement(80, 100);
|
||||
REQUIRE(status_vector.Mean() == 150);
|
||||
|
||||
auto plot = status_vector.GetMeanPlot(1);
|
||||
|
||||
REQUIRE(plot.size() == 1);
|
||||
REQUIRE(plot[0].x.size() == 2);
|
||||
REQUIRE(plot[0].x[0] == 50);
|
||||
REQUIRE(plot[0].x[1] == 80);
|
||||
}
|
||||
Reference in New Issue
Block a user