diff options
Diffstat (limited to 'backend/tests/slackpkg-test.cc')
| -rw-r--r-- | backend/tests/slackpkg-test.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backend/tests/slackpkg-test.cc b/backend/tests/slackpkg-test.cc index 09c4142..bc2e227 100644 --- a/backend/tests/slackpkg-test.cc +++ b/backend/tests/slackpkg-test.cc @@ -1,3 +1,8 @@ +/* + * 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/. + */ #include "slackpkg.h" using namespace slack; @@ -5,7 +10,7 @@ using namespace slack; static void slack_test_slackpkg_construct() { - auto slackpkg = new Slackpkg ("some", "mirror", 1, NULL, NULL); + auto slackpkg = new Slackpkg ("some", "mirror", 1, nullptr, nullptr); g_assert_cmpstr(slackpkg->get_name (), ==, "some"); g_assert_cmpstr(slackpkg->get_mirror (), ==, "mirror"); @@ -17,7 +22,7 @@ slack_test_slackpkg_construct() int main(int argc, char *argv[]) { - g_test_init(&argc, &argv, NULL); + g_test_init(&argc, &argv, nullptr); g_test_add_func("/slack/slackpkg/construct", slack_test_slackpkg_construct); |
