Skip to content
Snippets Groups Projects
Commit d1d2e700 authored by Damian Puente's avatar Damian Puente
Browse files
parents 969f12c6 2ce417a5
No related branches found
No related tags found
No related merge requests found
......@@ -52,15 +52,15 @@ TEST_CASE( "Basic power function test", "[calc]") {
}
TEST_CASE( "Parameters are misaligned and excpetion is thrown", "[calc]") {
// REQUIRE_THROWS( evaluate("40*/") );
// REQUIRE_THROWS( evaluate("14--") );
// REQUIRE_THROWS( evaluate("1+1") );
// REQUIRE_THROWS( evaluate("+11") );
REQUIRE_THROWS( evaluate("40*/") );
REQUIRE_THROWS( evaluate("14--") );
REQUIRE_THROWS( evaluate("1+1") );
REQUIRE_THROWS( evaluate("+11") );
}
TEST_CASE( "Two Operants in a row are detected and exception is thrown", "[calc]") {
//REQUIRE_THROWS( evaluate("11+3-+4") );
//REQUIRE_THROWS( evaluate("11/3*+4") );
REQUIRE_THROWS( evaluate("11+3-+4") );
REQUIRE_THROWS( evaluate("11/3*+4") );
}
TEST_CASE( "Unrecognized characters are detected and exception is thrown", "[calc]") {
......
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