kazbek/tests/database.cpp

15 lines
423 B
C++

#define BOOST_TEST_MODULE database tests
#include <boost/test/unit_test.hpp>
#include "katja/database.hpp"
BOOST_AUTO_TEST_CASE(generate_package_identifier)
{
katja::database_package actual("libarchive-3.7.8-i586-1_slack15.0");
BOOST_TEST(actual.name == "libarchive");
BOOST_TEST(actual.version == "3.7.8");
BOOST_TEST(actual.architecture == "i586");
BOOST_TEST(actual.build_tag == "1_slack15.0");
}