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

basic calculus test

parent cc421445
No related branches found
No related tags found
1 merge request!1basic calculus test
......@@ -2,7 +2,10 @@
#include <catch2/catch.hpp>
TEST_CASE( "some example calculations", "[calc]") {
TEST_CASE( "basic calculus", "[calc]") {
REQUIRE( evaluate("11+") == 2 );
REQUIRE( evaluate("12+2-3*") == 3 );
REQUIRE( evaluate("21-") == 1);
REQUIRE( evaluate("42/") == 2);
REQUIRE( evaluate("22*") == 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