Skip to content
Snippets Groups Projects
Commit 026f5460 authored by Steven Waleska's avatar Steven Waleska
Browse files

added power test

parent 34f12ab1
No related branches found
No related tags found
1 merge request!4added power test
......@@ -32,3 +32,9 @@ TEST_CASE( "Test modulo function", "[calc]") {
REQUIRE( evaluate("32%") == 1 );
REQUIRE( evaluate("51%") == 4 );
}
TEST_CASE( "Basic power test", "[calc]") {
REQUIRE( evaluate("22^") == 4 );
REQUIRE( evaluate("43^") == 64 );
REQUIRE( evaluate("25^") == 32 );
}
\ No newline at end of file
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