summaryrefslogtreecommitdiff
path: root/tests/tests.cc
blob: d86617257f377650c41ac5c014e2bf6d3c5da72a (plain)
1
2
3
4
5
6
7
8
9
10
11
#define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include "fact.h"

TEST_CASE( "factorials are computed", "[factorial]")
{
    REQUIRE( factorial(1) == 1 );
    REQUIRE( factorial(2) == 2 );
    REQUIRE( factorial(3) == 6 );
    REQUIRE( factorial(10) == 3628800 );
}