diff --git a/tests/test_positional_arguments.hpp b/tests/test_positional_arguments.hpp index b2b55dc..e69d55f 100644 --- a/tests/test_positional_arguments.hpp +++ b/tests/test_positional_arguments.hpp @@ -62,8 +62,8 @@ TEST_CASE("Square a number", "[positional_arguments]") { program.add_argument("square") .help("display a square of a given number") - .action([](const std::string& value) { auto integer = std::stoi(value); return integer * integer; }); + .action([](const std::string& value) { return pow(std::stoi(value), 2); }); program.parse_args({"./main", "15"}); - REQUIRE(program.get("square") == 225); + REQUIRE(program.get("square") == 225); } \ No newline at end of file