Commit 3100b70f authored by Oliver Heidmann's avatar Oliver Heidmann
Browse files

added test for double brackets

parent 37b386bf
......@@ -177,6 +177,25 @@ go_bandit([]() {
AssertThat(result_parse, snowhouse::Equals(expected_parse));
});
});
bandit::describe("Testing if cdo wildcards with additiona [] works", [&]() {
/* clang-format off */
std::vector<const char *> argv_wrongBracketTooFew{
"-in2_out1", "[", "[", "-in0_out1", "-in0_out1", "]", "]", "out"
};
/* clang-format on */
parseStatus = g_processManager.createProcessesFromInput(
argv_wrongBracketTooFew.size(), &argv_wrongBracketTooFew[0]);
g_processManager.getProcess(0).checkStreamCnt();
processStatus = g_processManager.getProcess(0).m_status;
bandit::it("should work", [&]() {
AssertThat(static_cast<int>(parseStatus),
Is().EqualTo(static_cast<int>(ParseStatus::Ok)));
AssertThat(static_cast<int>(processStatus),
Is().EqualTo(static_cast<int>(ProcessStatus::Ok)));
});
});
});
//==============================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment