File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -243,13 +243,13 @@ inflection::util::ULocale::operator!=(const ::inflection::util::ULocale& other)
243243inline bool
244244inflection::util::ULocale::operator <(const ::inflection::util::ULocale& other) const
245245{
246- return other. fullName < fullName;
246+ return fullName < other. fullName ;
247247}
248248
249249inline bool
250250inflection::util::ULocale::operator >(const ::inflection::util::ULocale& other) const
251251{
252- return other. fullName > fullName;
252+ return fullName > other. fullName ;
253253}
254254
255255inline ::std::string_view
Original file line number Diff line number Diff line change @@ -54,15 +54,18 @@ TEST_CASE("LocaleUtilsTest#hashTest")
5454{
5555 inflection::util::ULocale locale1 = inflection::util::LocaleUtils::ARABIC ();
5656 inflection::util::ULocale locale2 = inflection::util::LocaleUtils::GERMAN ();
57+ inflection::util::ULocale locale3 = inflection::util::LocaleUtils::HINDI ();
5758
5859 std::set<inflection::util::ULocale> s;
59- s.insert (locale1);
6060 s.insert (locale2);
61+ s.insert (locale1);
62+ s.insert (locale3);
6163
6264 auto it = s.begin ();
6365
64- REQUIRE (locale2 == *it);
65- REQUIRE (locale1 == *(++it));
66+ REQUIRE (locale1 == *it);
67+ REQUIRE (locale2 == *(++it));
68+ REQUIRE (locale3 == *(++it));
6669}
6770
6871TEST_CASE (" LocaleUtilsTest#testCoverage" )
You can’t perform that action at this time.
0 commit comments