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

exp test added

parent 5dd1f1f2
No related branches found
No related tags found
1 merge request!5Fix missing operands
......@@ -44,3 +44,9 @@ TEST_CASE( "Basic power test", "[calc]") {
REQUIRE( evaluate("43^") == 64 );
REQUIRE( evaluate("25^") == 32 );
}
TEST_CASE( "Basic exp test", "[calc]") {
REQUIRE( evaluate("1exp") == 2.72 );
REQUIRE( evaluate("5exp") == 13.59 );
REQUIRE( evaluate("9exp") == 24.46 );
}
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