Skip to content

Commit

Permalink
fix test case for assertion, which was failing on release
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschurk committed Jan 10, 2024
1 parent c702b6a commit 3cf62bb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CppOutputParser.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
TEST(CppOutputParser, Assert_When_Size_Of_Input_Not_Equal) {
// Setup
std::vector<std::string> inputString{"void f_gradient(double &x, double &dx)",
"x_t = 0"}; std::vector<int> inputInteger{0};
"x_t = 0"};
std::vector<int> inputInteger{0};
auto input = std::make_pair(inputString, inputInteger);
auto cpp_output_parser = std::make_unique<CppOutputParser>();

// Act
EXPECT_DEATH(cpp_output_parser->parse(input), "");
EXPECT_ANY_THROW(cpp_output_parser->parse(input));
}

TEST(CppOutputParser, Simple_Parse_Expectinv_Opening_Closing_Brackets_And_Semicolon) {
Expand Down

0 comments on commit 3cf62bb

Please sign in to comment.