Skip to content
Snippets Groups Projects
Commit 5dd1f1f2 authored by Lisa's avatar Lisa
Browse files

merge

parents 8dee0ba7 3d4017c3
No related branches found
No related tags found
2 merge requests!7two operants,!3sqrt test
......@@ -30,7 +30,7 @@ TEST_CASE( "basic division", "[calc]"){
TEST_CASE( "Test modulo function", "[calc]") {
REQUIRE( evaluate("11%") == 0 );
REQUIRE( evaluate("32%") == 1 );
REQUIRE( evaluate("51%") == 4 );
REQUIRE( evaluate("51%") == 0 );
}
TEST_CASE("Test sqrt function", "[calc]") {
......@@ -38,3 +38,9 @@ TEST_CASE("Test sqrt function", "[calc]") {
REQUIRE( evaluate("49sqrt") == 7 );
REQUIRE( evaluate("0sqrt") == 0 );
}
TEST_CASE( "Basic power test", "[calc]") {
REQUIRE( evaluate("22^") == 4 );
REQUIRE( evaluate("43^") == 64 );
REQUIRE( evaluate("25^") == 32 );
}
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