From d10300509e75b5e73ee5e2df1dbc340fb031899c Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Thu, 21 Nov 2024 08:47:51 +0100 Subject: [PATCH] Formatting --- lab2/test_edit_distance.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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);