You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
580 B

  1. #include <config.h>
  2. #include <apt-pkg/pkgcache.h>
  3. #include <gtest/gtest.h>
  4. #include <string>
  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. }