1
0
Fork 0
apt/test/libapt/priority_test.cc
Daniel Baumann 6810ba718b
Adding upstream version 3.0.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-20 21:10:43 +02:00

16 lines
575 B
C++

#include <config.h>
#include <apt-pkg/pkgcache.h>
#include "common.h"
#include <string>
using std::string;
// Tests for Bug#807523
TEST(PriorityTest, PriorityPrinting)
{
EXPECT_EQ("required", string(pkgCache::Priority(pkgCache::State::Required)));
EXPECT_EQ("important", string(pkgCache::Priority(pkgCache::State::Important)));
EXPECT_EQ("standard", string(pkgCache::Priority(pkgCache::State::Standard)));
EXPECT_EQ("optional", string(pkgCache::Priority(pkgCache::State::Optional)));
EXPECT_EQ("extra", string(pkgCache::Priority(pkgCache::State::Extra)));
}