Formatting

This commit is contained in:
Imbus 2024-11-21 08:47:51 +01:00
parent 7dd7f5610b
commit d10300509e

View file

@ -8,8 +8,7 @@
#include <iostream>
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);