Loading...
Searching...
No Matches
main_test.cpp
Go to the documentation of this file.
1
//
2
// Created by denzel on 27/10/2025.
3
//
4
#
include
<
catch2
/
catch_test_macros
.
hpp
>
5
6
TEST_CASE
(
""
) {
7
8
}
9
10
// TEST_CASE("Prime number detection") {
11
// REQUIRE(L1Exercises::isPrime(2) == true);
12
// REQUIRE(L1Exercises::isPrime(3) == true);
13
// REQUIRE(L1Exercises::isPrime(7) == true);
14
// REQUIRE(L1Exercises::isPrime(4) == false);
15
// REQUIRE(L1Exercises::isPrime(1) == false);
16
// }
17
//
18
// TEST_CASE("Even or Odd function works correctly") {
19
// REQUIRE(L1Exercises::isEvenOrOdd(2) == true);
20
// REQUIRE(L1Exercises::isEvenOrOdd(4) == true);
21
// REQUIRE(L1Exercises::isEvenOrOdd(5) == false);
22
// REQUIRE(L1Exercises::isEvenOrOdd(102021) == false);
23
// }
TEST_CASE
TEST_CASE("")
Definition
main_test.cpp:6
tests
main_test.cpp
Generated by
1.9.8