diff options
| author | Leonetienne <leonetienne@hotmail.de> | 2022-02-11 01:38:39 +0100 |
|---|---|---|
| committer | Leonetienne <leonetienne@hotmail.de> | 2022-02-11 01:38:39 +0100 |
| commit | 364ce236b375ecae3a33100d689d8ae60a5e6da3 (patch) | |
| tree | 88acc77603d9c9c179d142290d5f824fdf1410b4 /StringTools/Test/test.cpp | |
| parent | fdf684a01d985b9a3c1443c4c3b47c7fbd7d68de (diff) | |
Yeeted miso
Diffstat (limited to 'StringTools/Test/test.cpp')
| -rw-r--r-- | StringTools/Test/test.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/StringTools/Test/test.cpp b/StringTools/Test/test.cpp deleted file mode 100644 index 80b7166..0000000 --- a/StringTools/Test/test.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#define CATCH_CONFIG_MAIN -#include "Catch2.h" - -int Add(int a, int b) -{ - return a+b; -} - -TEST_CASE("Add works with zeroes", "[add]") -{ - REQUIRE(Add(0, 0) == 0); - REQUIRE(Add(5, 0) == 5); - REQUIRE(Add(0, 5) == 5); -} - -TEST_CASE("Add works with negatives", "[add]") -{ - REQUIRE(Add(-5, 0) == -5); - REQUIRE(Add(0, -5) == -5); - REQUIRE(Add(-5, -5) == -10); -} |
