v1.0.0-rc.43
This commit is contained in:
@@ -313,4 +313,18 @@ TEST_CASE("StatusVector_Clear","[StatusVector]") {
|
||||
REQUIRE(plot.GetPlots()[0].x.size() == 2);
|
||||
REQUIRE(plot.GetPlots()[0].x[0] == 50);
|
||||
REQUIRE(plot.GetPlots()[0].x[1] == 80);
|
||||
}
|
||||
|
||||
TEST_CASE("StatusVector_GetElement","[StatusVector]") {
|
||||
StatusVector<uint64_t> status_vector;
|
||||
status_vector.AddElement(5, 800);
|
||||
status_vector.AddElement(8, 1000);
|
||||
|
||||
REQUIRE(!status_vector.GetElement(0));
|
||||
REQUIRE(!status_vector.GetElement(3));
|
||||
REQUIRE(status_vector.GetElement(5) == 800);
|
||||
REQUIRE(!status_vector.GetElement(7));
|
||||
REQUIRE(status_vector.GetElement(8) == 1000);
|
||||
REQUIRE(!status_vector.GetElement(9));
|
||||
REQUIRE(!status_vector.GetElement(100));
|
||||
}
|
||||
Reference in New Issue
Block a user