mirror of
https://github.com/BlackMATov/meta.hpp.git
synced 2025-12-16 14:09:02 +07:00
compare ops hashed_string with string_view
This commit is contained in:
@@ -77,12 +77,17 @@ TEST_CASE("meta/meta_base/hashed_string") {
|
||||
constexpr hashed_string hs2{"hello"};
|
||||
static_assert(!(hs1 < hs2) && !(hs2 < hs1));
|
||||
static_assert(hs1 < hashed_string{"world"} || hashed_string{"world"} < hs1);
|
||||
static_assert((hs1 < "world" || hs1 > "world"));
|
||||
static_assert(("world" < hs1 || "world" > hs1));
|
||||
}
|
||||
|
||||
SUBCASE("operator==") {
|
||||
constexpr hashed_string hs1{"hello"};
|
||||
static_assert(hs1 == hashed_string{"hello"});
|
||||
static_assert(hs1 != hashed_string{"world"});
|
||||
static_assert(hs1 == "hello");
|
||||
static_assert("hello" == hs1);
|
||||
static_assert("world" != hs1);
|
||||
}
|
||||
|
||||
SUBCASE("swap") {
|
||||
|
||||
Reference in New Issue
Block a user