catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Fix benchmarking example in the main readme
- Commit
e6ec1c238b3c52e08b39787eaeefc5d98c404cbc- Author
- Martin Hořeňovský ·
- Parents
477c1f5152b1
Changes
README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6a0b99c3..a275f7de 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ TEST_CASE( "Factorials are computed", "[factorial]" ) { #include <cstdint> uint64_t fibonacci(uint64_t number) { - return number < 2 ? 1 : fibonacci(number - 1) + fibonacci(number - 2); + return number < 2 ? number : fibonacci(number - 1) + fibonacci(number - 2); } TEST_CASE("Benchmark Fibonacci", "[!benchmark]") {