File indexing completed on 2024-12-22 04:28:16
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #include "customemojitest.h" 0008 #include "customemoji.h" 0009 #include "emoticonunicodeutils.h" 0010 #include <QTest> 0011 QTEST_GUILESS_MAIN(CustomEmojiTest) 0012 0013 CustomEmojiTest::CustomEmojiTest(QObject *parent) 0014 : QObject{parent} 0015 { 0016 } 0017 0018 void CustomEmojiTest::shouldHaveDefaultValues() 0019 { 0020 TextEmoticonsCore::CustomEmoji w; 0021 QVERIFY(!w.category().isEmpty()); 0022 QVERIFY(w.identifier().isEmpty()); 0023 QCOMPARE(w.category(), TextEmoticonsCore::EmoticonUnicodeUtils::customIdentifier()); 0024 QVERIFY(!w.isAnimatedEmoji()); 0025 } 0026 0027 #include "moc_customemojitest.cpp"