Skip to content
Snippets Groups Projects
Commit c434d888 authored by Padok's avatar Padok
Browse files
parents e2f12899 d9de8178
No related branches found
No related tags found
1 merge request!5Fix missing operands
......@@ -51,6 +51,13 @@ TEST_CASE( "Basic power test", "[calc]") {
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") );
}
TEST_CASE( "Two Operants in a row", "[calc]") {
//REQUIRE_THROWS( evaluate("11+3-+4") );
//REQUIRE_THROWS( evaluate("11/3*+4") );
......
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