string: rename compare as equality

This commit is contained in:
Danny Robson 2021-11-22 10:42:19 +10:00
parent eb89ddcd53
commit e75b1f571c
2 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ namespace cruft {
} }
namespace cruft::string::compare { namespace cruft::string::equality {
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
/// A case comparator that tests equality on a string after a /// A case comparator that tests equality on a string after a
/// per-character transform is applied. /// per-character transform is applied.

View File

@ -206,10 +206,10 @@ void test_comparator_lower (cruft::TAP::logger &tap)
{ "A", "aa", false, "mixed case, different lengths" }, { "A", "aa", false, "mixed case, different lengths" },
}; };
cruft::string::compare::lower cmp; cruft::string::equality::lower cmp;
for (auto const &t: TESTS) { for (auto const &t: TESTS) {
tap.expect_eq (cmp (t.a, t.b), t.equal, "compare::lower, pointers, {}", t.message); tap.expect_eq (cmp (t.a, t.b), t.equal, "equality::lower, pointers, {}", t.message);
} }
} }