]> git.saurik.com Git - apt.git/blob - test/libapt/priority_test.cc
Do not swap required and important in pkgCache::Priority()
[apt.git] / test / libapt / priority_test.cc
1 #include <config.h>
2 #include <apt-pkg/pkgcache.h>
3 #include <string>
4 #include <gtest/gtest.h>
5
6 using std::string;
7
8 // Tests for Bug#807523
9 TEST(PriorityTest, PriorityPrinting)
10 {
11 EXPECT_EQ("required", string(pkgCache::Priority(pkgCache::State::Required)));
12 EXPECT_EQ("important", string(pkgCache::Priority(pkgCache::State::Important)));
13 EXPECT_EQ("standard", string(pkgCache::Priority(pkgCache::State::Standard)));
14 EXPECT_EQ("optional", string(pkgCache::Priority(pkgCache::State::Optional)));
15 EXPECT_EQ("extra", string(pkgCache::Priority(pkgCache::State::Extra)));
16 }