mirror of
https://github.com/BlackMATov/flat.hpp.git
synced 2025-12-16 14:09:01 +07:00
add operators interface
This commit is contained in:
@@ -149,4 +149,15 @@ TEST_CASE("flat_set") {
|
||||
my_as_const(s0).key_comp();
|
||||
my_as_const(s0).value_comp();
|
||||
}
|
||||
SECTION("operators") {
|
||||
using set_t = flat_set<int>;
|
||||
set_t s0;
|
||||
set_t s1;
|
||||
REQUIRE(s0 == s1);
|
||||
REQUIRE_FALSE(s0 != s1);
|
||||
REQUIRE_FALSE(s0 < s1);
|
||||
REQUIRE_FALSE(s0 > s1);
|
||||
REQUIRE(s0 <= s1);
|
||||
REQUIRE(s0 >= s1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user