diff --git a/lab2/test_edit_distance.cc b/lab2/test_edit_distance.cc index 1f44719..982badf 100644 --- a/lab2/test_edit_distance.cc +++ b/lab2/test_edit_distance.cc @@ -8,8 +8,7 @@ #include -bool do_test(const std::string& x, const std::string& y, int expected) -{ +bool do_test(const std::string &x, const std::string &y, int expected) { auto actual = edit_distance(x, y); if (actual != expected) { std::cout << "*** WRONG: distance(" << x << ", " << y << ") was " @@ -19,8 +18,7 @@ bool do_test(const std::string& x, const std::string& y, int expected) return false; } -int main() -{ +int main() { int res = do_test("foobar", "foobar", 0); res += do_test("x", "x", 0); res += do_test("baz", "bar", 1);