Skip to content
Snippets Groups Projects
Commit b675f260 authored by Michael Schneider's avatar Michael Schneider
Browse files

created new testcase for modulo operator

parent 97afae57
No related branches found
No related tags found
No related merge requests found
......@@ -7,3 +7,9 @@ TEST_CASE( "some example calculations", "[calc]") {
REQUIRE( evaluate("12+2-3*") == 3 );
REQUIRE( evaluate("32%") == 1 );
}
TEST_CASE( "Test modulo function", "[calc]") {
REQUIRE( evaluate("11%") == 0 );
REQUIRE( evaluate("32%") == 1 );
REQUIRE( evaluate("51%") == 4 );
}
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