Added new testcase
authorAlma Dejus <almde515@student.liu.se>
Wed, 11 Oct 2023 11:58:04 +0000 (13:58 +0200)
committerAlma Dejus <almde515@student.liu.se>
Wed, 11 Oct 2023 11:58:04 +0000 (13:58 +0200)
src/test.cc

index 57ad9a0f725f583ee4a74083c26a6082c5347eff..2278fe38ee358dee68cec7dd0190e43a9b697824 100644 (file)
@@ -86,9 +86,12 @@ TEST_CASE("Noder")
         CHECK( my_exp.get_infix() == "((3+2.000)^(7*1.500))" );
         CHECK( my_exp.get_prefix() == "^ + 3 2.000 * 7 1.500" );
         CHECK( my_exp.get_value() == 21836601.3427713849 );
-        
     }
 }
+TEST_CASE("Expression")
+{
+    Expression e{"(1+2)^3"};
+}
 
 int main()
 {