From e7d44df7ed212a8c21bd761501a354ada74a5fe5 Mon Sep 17 00:00:00 2001 From: kilativ-dotcom Date: Thu, 17 Oct 2024 18:33:52 +0300 Subject: [PATCH] [tests] Add single - test --- tests/units/test_command_parser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/units/test_command_parser.cpp b/tests/units/test_command_parser.cpp index a9173b2f..2c025e94 100644 --- a/tests/units/test_command_parser.cpp +++ b/tests/units/test_command_parser.cpp @@ -27,6 +27,9 @@ TEST_F(ScComponentManagerTest, ParseCommandTypes) commandType = m_commandParser->Parse("components search").first; EXPECT_EQ(commandType, "search"); + commandType = m_commandParser->Parse("components search -").first; + EXPECT_EQ(commandType, "search"); + commandType = m_commandParser->Parse("components install").first; EXPECT_EQ(commandType, "install"); }