summaryrefslogtreecommitdiff
path: root/test/libapt/commandline_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/libapt/commandline_test.cc')
-rw-r--r--test/libapt/commandline_test.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/libapt/commandline_test.cc b/test/libapt/commandline_test.cc
index 1dc9c6946..cde80b457 100644
--- a/test/libapt/commandline_test.cc
+++ b/test/libapt/commandline_test.cc
@@ -73,7 +73,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(3 , argv);
EXPECT_TRUE(c.FindB("Test::Worked", false));
EXPECT_EQ("yes", c.Find("Test::Worked", "no"));
- EXPECT_EQ(0, CmdL.FileSize());
+ EXPECT_EQ(0u, CmdL.FileSize());
}
c.Clear("Test");
{
@@ -81,7 +81,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(2 , argv);
EXPECT_TRUE(c.Exists("Test::Worked"));
EXPECT_EQ("yes", c.Find("Test::Worked", "no"));
- EXPECT_EQ(0, CmdL.FileSize());
+ EXPECT_EQ(0u, CmdL.FileSize());
}
c.Clear("Test");
{
@@ -89,7 +89,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(3 , argv);
EXPECT_TRUE(c.Exists("Test::Worked"));
EXPECT_EQ("no", c.Find("Test::Worked", "no"));
- EXPECT_EQ(1, CmdL.FileSize());
+ EXPECT_EQ(1u, CmdL.FileSize());
}
c.Clear("Test");
@@ -98,7 +98,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(3 , argv);
EXPECT_TRUE(c.FindB("Test::Worked", false));
EXPECT_EQ("yes", c.Find("Test::Worked", "no"));
- EXPECT_EQ(0, CmdL.FileSize());
+ EXPECT_EQ(0u, CmdL.FileSize());
}
c.Clear("Test");
{
@@ -106,7 +106,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(2 , argv);
EXPECT_TRUE(c.Exists("Test::Worked"));
EXPECT_EQ("yes", c.Find("Test::Worked", "no"));
- EXPECT_EQ(0, CmdL.FileSize());
+ EXPECT_EQ(0u, CmdL.FileSize());
}
c.Clear("Test");
{
@@ -114,7 +114,7 @@ TEST(CommandLineTest,Parsing)
CmdL.Parse(3 , argv);
EXPECT_TRUE(c.Exists("Test::Worked"));
EXPECT_EQ("no", c.Find("Test::Worked", "no"));
- EXPECT_EQ(1, CmdL.FileSize());
+ EXPECT_EQ(1u, CmdL.FileSize());
}
c.Clear("Test");
@@ -185,7 +185,7 @@ TEST(CommandLineTest,GetCommand)
ASSERT_TRUE(CmdL.Parse(sizeof(argv)/sizeof(argv[0]), argv));
EXPECT_EQ(c.Find("APT::Default-Release"), "unstable");
EXPECT_TRUE(c.FindB("APT::Get::Download-Only"));
- ASSERT_EQ(2, CmdL.FileSize());
+ ASSERT_EQ(2u, CmdL.FileSize());
EXPECT_EQ(std::string(CmdL.FileList[0]), "remove");
EXPECT_EQ(std::string(CmdL.FileList[1]), "foo");
}
@@ -199,7 +199,7 @@ TEST(CommandLineTest,GetCommand)
ASSERT_TRUE(CmdL.Parse(sizeof(argv)/sizeof(argv[0]), argv));
EXPECT_EQ(c.Find("APT::Default-Release"), "unstable");
EXPECT_FALSE(c.FindB("APT::Get::Download-Only"));
- ASSERT_EQ(3, CmdL.FileSize());
+ ASSERT_EQ(3u, CmdL.FileSize());
EXPECT_EQ(std::string(CmdL.FileList[0]), "remove");
EXPECT_EQ(std::string(CmdL.FileList[1]), "-d");
EXPECT_EQ(std::string(CmdL.FileList[2]), "foo");
@@ -214,7 +214,7 @@ TEST(CommandLineTest,GetCommand)
ASSERT_TRUE(CmdL.Parse(sizeof(argv)/sizeof(argv[0]), argv));
EXPECT_EQ(c.Find("APT::Default-Release"), "unstable");
EXPECT_FALSE(c.FindB("APT::Get::Download-Only"));
- ASSERT_EQ(CmdL.FileSize(), 3);
+ ASSERT_EQ(3u, CmdL.FileSize());
EXPECT_EQ(std::string(CmdL.FileList[0]), "remove");
EXPECT_EQ(std::string(CmdL.FileList[1]), "-d");
EXPECT_EQ(std::string(CmdL.FileList[2]), "foo");
@@ -229,7 +229,7 @@ TEST(CommandLineTest,GetCommand)
ASSERT_TRUE(CmdL.Parse(sizeof(argv)/sizeof(argv[0]), argv));
EXPECT_EQ(c.Find("APT::Default-Release"), "unstable");
EXPECT_FALSE(c.FindB("APT::Get::Download-Only"));
- ASSERT_EQ(CmdL.FileSize(), 4);
+ ASSERT_EQ(4u, CmdL.FileSize());
EXPECT_EQ(std::string(CmdL.FileList[0]), "install");
EXPECT_EQ(std::string(CmdL.FileList[1]), "remove");
EXPECT_EQ(std::string(CmdL.FileList[2]), "-d");