Skip to content

Commit

Permalink
Modified test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
avighnac committed Jun 10, 2023
1 parent 2aef2cc commit 09d35d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/eval_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ TEST(EvalTests, Test11) {
TEST(EvalTests, Test12) {
std::string result;
result = call_arithmetica_tui("eval 7725/75-(24*300)/75");
ASSERT_EQ(result, "this test case fails rn");
ASSERT_EQ(result, "arithmetica> eval 7725/75-(24*300)/75\\n \\n7\\n \\narithmetica> exit\\n");
result = call_arithmetica_tui("showsteps\neval 7725/75-(24*300)/75");
ASSERT_EQ(result, "this test case fails rn");
}

TEST(EvalTests, Test13) {
std::string result;
result = call_arithmetica_tui("eval (2*8+9)^(1/2)-(8-4)^(1/2)");
ASSERT_EQ(result, "this test case fails rn");
ASSERT_EQ(result, "arithmetica> eval (2*8+9)^(1/2)-(8-4)^(1/2)\\n \\n3\\n \\narithmetica> exit\\n");
result = call_arithmetica_tui("showsteps\neval (2*8+9)^(1/2)-(8-4)^(1/2)");
ASSERT_EQ(result, "this test case fails rn");
}

0 comments on commit 09d35d7

Please sign in to comment.