Skip to content
Snippets Groups Projects
Commit 5a8c1609 authored by Christian Gebing's avatar Christian Gebing Committed by Sebastian Staffa
Browse files

Added Test-Case divide by zero

parent be5a1cb9
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@ TEST_CASE("divide-function work as designed", "[mathemathic-operations]") {
REQUIRE(divide(10,5) == 2);
REQUIRE(divide(-2,1) == -2);
REQUIRE(divide(6,-2) == -3);
REQUIRE_THROWS_AS( divide(2,0), std::invalid_argument );
}
TEST_CASE("Evaluate Function for basic Functionality","[evaluate]") {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment