Files
apt/test/libapt/priority_test.cc
Julian Andres Klode 87274d0f22 Reformat and sort all includes with clang-format
This makes it easier to see which headers includes what.

The changes were done by running

    git grep -l '#\s*include'  \
        | grep -E '.(cc|h)$' \
        | xargs sed -i -E 's/(^\s*)#(\s*)include/\1#\2 include/'

To modify all include lines by adding a space, and then running
./git-clang-format.sh.
2017-07-12 13:57:51 +02:00

17 lines
580 B
C++

#include <config.h>
#include <apt-pkg/pkgcache.h>
#include <gtest/gtest.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)));
}