priority_test.cc 580 B

1234567891011121314151617
  1. #include <config.h>
  2. #include <apt-pkg/pkgcache.h>
  3. #include <string>
  4. #include <gtest/gtest.h>
  5. using std::string;
  6. // Tests for Bug#807523
  7. TEST(PriorityTest, PriorityPrinting)
  8. {
  9. EXPECT_EQ("required", string(pkgCache::Priority(pkgCache::State::Required)));
  10. EXPECT_EQ("important", string(pkgCache::Priority(pkgCache::State::Important)));
  11. EXPECT_EQ("standard", string(pkgCache::Priority(pkgCache::State::Standard)));
  12. EXPECT_EQ("optional", string(pkgCache::Priority(pkgCache::State::Optional)));
  13. EXPECT_EQ("extra", string(pkgCache::Priority(pkgCache::State::Extra)));
  14. }