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

add cases for sqrt test

parent e88eb71f
No related branches found
No related tags found
1 merge request!5Fix missing operands
......@@ -36,4 +36,6 @@ TEST_CASE( "Test modulo function", "[calc]") {
TEST_CASE("Test sqrt function", "[calc]") {
REQUIRE( evaluate("9sqrt") == 3 );
REQUIRE( evaluate("49sqrt") == 7 );
REQUIRE( evaluate("0sqrt") == 0 );
}
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