Skip to content
Snippets Groups Projects
Commit 05bd7ab9 authored by Niklas Hannekotte's avatar Niklas Hannekotte
Browse files

Merge branch 'master' into 'master'

unrecognized chars test added

See merge request qsue-team-b/rpn_collab!11
parents c2f07571 72358346
No related branches found
No related tags found
1 merge request!5Fix missing operands
......@@ -40,9 +40,9 @@ TEST_CASE( "Test modulo function", "[calc]") {
}
TEST_CASE( "Div by zero not allowed", "[calc]") {
// REQUIRE_THROWS( evaluate("40/") );
// REQUIRE_THROWS( evaluate("00/") );
// REQUIRE_THROWS( evaluate("90/") );
REQUIRE_THROWS( evaluate("40/") );
REQUIRE_THROWS( evaluate("00/") );
REQUIRE_THROWS( evaluate("90/") );
}
TEST_CASE( "Basic power test", "[calc]") {
......@@ -56,3 +56,7 @@ TEST_CASE( "Two Operants in a row", "[calc]") {
//REQUIRE_THROWS( evaluate("11/3*+4") );
}
TEST_CASE( "Unrecognized characters", "[calc]") {
REQUIRE_THROWS( evaluate("11+3?4") );
REQUIRE_THROWS( evaluate("1F+") );
}
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