summaryrefslogtreecommitdiff
path: root/tests/slackpkg.cpp
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-05-20 17:53:57 +0200
committerEugen Wissner <belka@caraus.de>2026-05-20 17:53:57 +0200
commit76985de795f33f71684635ad5f14dc84aefea26e (patch)
treee8aed126b84b4ba3a76cf26fb9720c0f83eac594 /tests/slackpkg.cpp
parentc04278ff84c2c4d9c54bbd43c1542e4eace40419 (diff)
downloadkatja-76985de795f33f71684635ad5f14dc84aefea26e.tar.gz
Fix the backend test
Diffstat (limited to 'tests/slackpkg.cpp')
-rw-r--r--tests/slackpkg.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/slackpkg.cpp b/tests/slackpkg.cpp
new file mode 100644
index 0000000..9a47765
--- /dev/null
+++ b/tests/slackpkg.cpp
@@ -0,0 +1,21 @@
+/*
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/.
+ */
+#define BOOST_TEST_MODULE slackpkg tests
+
+#include <boost/test/unit_test.hpp>
+import katja.slackpkg;
+
+BOOST_AUTO_TEST_CASE(slack_test_slackpkg_construct)
+{
+ auto slackpkg = new katja::Slackpkg("some", "mirror", 1, nullptr, nullptr);
+
+ BOOST_TEST(slackpkg->name == "some");
+ BOOST_TEST(slackpkg->mirror == "mirror");
+ BOOST_TEST(slackpkg->order == 1);
+ BOOST_TEST(!slackpkg->is_blacklisted("pattern"));
+
+ delete slackpkg;
+}