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 #include "unicodeemoticontest.h"
0007 #include "unicodeemoticon.h"
0008 #include <QTest>
0009 QTEST_GUILESS_MAIN(UnicodeEmoticonTest)
0010 UnicodeEmoticonTest::UnicodeEmoticonTest(QObject *parent)
0011     : QObject{parent}
0012 {
0013 }
0014 
0015 void UnicodeEmoticonTest::shouldHaveDefaultValues()
0016 {
0017     TextEmoticonsCore::UnicodeEmoticon w;
0018     QVERIFY(w.identifier().isEmpty());
0019     QVERIFY(w.unicode().isEmpty());
0020     QVERIFY(w.category().isEmpty());
0021     QVERIFY(w.aliases().isEmpty());
0022     QVERIFY(w.key().isEmpty());
0023     QVERIFY(!w.isValid());
0024     QCOMPARE(w.order(), -1);
0025 }
0026 
0027 #include "moc_unicodeemoticontest.cpp"