Tests: Reformat to current clang-format standard

This commit is contained in:
Chris Hennes
2023-09-02 12:47:07 -05:00
committed by Chris Hennes
parent d9a6a2b51d
commit 246a387625
6 changed files with 67 additions and 39 deletions

View File

@@ -6,33 +6,39 @@ using namespace App::Util;
using Spr = std::pair<std::string, std::string>;
TEST(ApplicationTest, fCustomSyntaxLookup){
TEST(ApplicationTest, fCustomSyntaxLookup)
{
Spr res {customSyntax("-display")};
Spr exp {"display", "null"};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
};
TEST(ApplicationTest, fCustomSyntaxMac){
TEST(ApplicationTest, fCustomSyntaxMac)
{
Spr res {customSyntax("-psn_stuff")};
Spr exp {"psn", "stuff"};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
};
TEST(ApplicationTest, fCustomSyntaxWidgetCount){
TEST(ApplicationTest, fCustomSyntaxWidgetCount)
{
Spr res {customSyntax("-widgetcount")};
Spr exp {"widgetcount", ""};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
}
TEST(ApplicationTest, fCustomSyntaxNotFound){
TEST(ApplicationTest, fCustomSyntaxNotFound)
{
Spr res {customSyntax("-displayx")};
Spr exp {"", ""};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
};
TEST(ApplicationTest, fCustomSyntaxAmpersand){
TEST(ApplicationTest, fCustomSyntaxAmpersand)
{
Spr res {customSyntax("@freddie")};
Spr exp {"response-file", "freddie"};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
};
TEST(ApplicationTest, fCustomSyntaxEmptyIn){
TEST(ApplicationTest, fCustomSyntaxEmptyIn)
{
Spr res {customSyntax("")};
Spr exp {"", ""};
EXPECT_EQ(res,exp);
EXPECT_EQ(res, exp);
};