summaryrefslogtreecommitdiff
path: root/test/libapt/getarchitectures_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/libapt/getarchitectures_test.cc')
-rw-r--r--test/libapt/getarchitectures_test.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/libapt/getarchitectures_test.cc b/test/libapt/getarchitectures_test.cc
index 53c00cd8f..57e9a5f2f 100644
--- a/test/libapt/getarchitectures_test.cc
+++ b/test/libapt/getarchitectures_test.cc
@@ -16,36 +16,36 @@ TEST(ArchitecturesTest,SimpleLists)
_config->Set("APT::Architectures::1", "i386");
_config->Set("APT::Architectures::2", "amd64");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(2, vec.size());
+ ASSERT_EQ(2u, vec.size());
EXPECT_EQ("i386", vec[0]);
EXPECT_EQ("amd64", vec[1]);
_config->Set("APT::Architecture", "i386");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(2, vec.size());
+ ASSERT_EQ(2u, vec.size());
EXPECT_EQ("i386", vec[0]);
EXPECT_EQ("amd64", vec[1]);
_config->Set("APT::Architectures::2", "");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(1, vec.size());
+ ASSERT_EQ(1u, vec.size());
EXPECT_EQ("i386", vec[0]);
_config->Set("APT::Architecture", "armel");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(2, vec.size());
+ ASSERT_EQ(2u, vec.size());
EXPECT_EQ("armel", vec[0]);
EXPECT_EQ("i386", vec[1]);
_config->Set("APT::Architectures::2", "armel");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(2, vec.size());
+ ASSERT_EQ(2u, vec.size());
EXPECT_EQ("i386", vec[0]);
EXPECT_EQ("armel", vec[1]);
_config->Set("APT::Architectures", "armel,armhf");
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(2, vec.size());
+ ASSERT_EQ(2u, vec.size());
EXPECT_EQ("armel", vec[0]);
EXPECT_EQ("armhf", vec[1]);
_config->Clear();
@@ -66,9 +66,9 @@ TEST(ArchitecturesTest,Duplicates)
_config->Set("APT::Architectures::", "amd64");
_config->Set("APT::Architectures::", "amd64");
std::vector<std::string> vec = _config->FindVector("APT::Architectures");
- ASSERT_EQ(10, vec.size());
+ ASSERT_EQ(10u, vec.size());
vec = APT::Configuration::getArchitectures(false);
- ASSERT_EQ(3, vec.size());
+ ASSERT_EQ(3u, vec.size());
EXPECT_EQ("i386", vec[0]);
EXPECT_EQ("amd64", vec[1]);
EXPECT_EQ("armel", vec[2]);