Skip to content
Snippets Groups Projects
Commit d9de8178 authored by Padok's avatar Padok
Browse files

Misalignments of commands and parameters test

parent 71c8e1e6
No related branches found
No related tags found
1 merge request!5Fix missing operands
......@@ -44,3 +44,10 @@ TEST_CASE( "Basic power test", "[calc]") {
REQUIRE( evaluate("43^") == 64 );
REQUIRE( evaluate("25^") == 32 );
}
TEST_CASE( "Misalignments of commands and parameters test", "[calc]") {
// REQUIRE_THROWS( evaluate("40*/") );
// REQUIRE_THROWS( evaluate("14--") );
// REQUIRE_THROWS( evaluate("1+1") );
// REQUIRE_THROWS( evaluate("+11") );
}
\ 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