utils: improve assert_equal macro
make it a macro so we get line numbers etc
This commit is contained in:
@ -502,21 +502,6 @@ Mu::canonicalize_filename(const std::string& path, const std::string& relative_t
|
||||
return rv;
|
||||
}
|
||||
|
||||
void
|
||||
Mu::assert_equal(const std::string& s1, const std::string& s2)
|
||||
{
|
||||
g_assert_cmpstr(s1.c_str(), ==, s2.c_str());
|
||||
}
|
||||
|
||||
void
|
||||
Mu::assert_equal(const Mu::StringVec& v1, const Mu::StringVec& v2)
|
||||
{
|
||||
g_assert_cmpuint(v1.size(), ==, v2.size());
|
||||
|
||||
for (auto i = 0U; i != v1.size(); ++i)
|
||||
assert_equal(v1[i], v2[i]);
|
||||
}
|
||||
|
||||
void
|
||||
Mu::allow_warnings()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user