string: rename compare as equality
This commit is contained in:
parent
eb89ddcd53
commit
e75b1f571c
@ -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
|
||||
/// per-character transform is applied.
|
||||
|
@ -206,10 +206,10 @@ void test_comparator_lower (cruft::TAP::logger &tap)
|
||||
{ "A", "aa", false, "mixed case, different lengths" },
|
||||
};
|
||||
|
||||
cruft::string::compare::lower cmp;
|
||||
cruft::string::equality::lower cmp;
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user