mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-16 06:47:14 +02:00
format support lib
This commit is contained in:
@ -10,19 +10,18 @@ TEST_CASE("FixedCapacityContainer is a container") {
|
||||
REQUIRE(sls::is_container<FixedCapacityContainer<int, 7>>::value == true);
|
||||
}
|
||||
|
||||
TEST_CASE("Comparing FixedCapacity containers"){
|
||||
FixedCapacityContainer<int, 5> a{0,1,2};
|
||||
FixedCapacityContainer<int, 5> b{0,1,2};
|
||||
FixedCapacityContainer<int, 5> c{0,1,2,4};
|
||||
|
||||
REQUIRE(a==b);
|
||||
REQUIRE_FALSE(a!=b);
|
||||
REQUIRE_FALSE(a==c);
|
||||
REQUIRE(a!=c);
|
||||
REQUIRE(c!=a);
|
||||
REQUIRE_FALSE(c==a);
|
||||
REQUIRE_FALSE(b==c);
|
||||
TEST_CASE("Comparing FixedCapacity containers") {
|
||||
FixedCapacityContainer<int, 5> a{0, 1, 2};
|
||||
FixedCapacityContainer<int, 5> b{0, 1, 2};
|
||||
FixedCapacityContainer<int, 5> c{0, 1, 2, 4};
|
||||
|
||||
REQUIRE(a == b);
|
||||
REQUIRE_FALSE(a != b);
|
||||
REQUIRE_FALSE(a == c);
|
||||
REQUIRE(a != c);
|
||||
REQUIRE(c != a);
|
||||
REQUIRE_FALSE(c == a);
|
||||
REQUIRE_FALSE(b == c);
|
||||
}
|
||||
|
||||
TEST_CASE("Compare array and fixed capacity container") {
|
||||
|
Reference in New Issue
Block a user