#include <catch2/catch.hpp>

auto collatz_point_if_statement(int const x) -> int
{
    if (x % 2 == 0) {
        return x / 2;
    }
    return 3 * x + 1;
}

TEST_CASE()
{
    CHECK(collatz_point_if_statement(6) == 3);
    CHECK(collatz_point_if_statement(5) == 16);
}