File indexing completed on 2024-11-24 04:16:57
0001 /* 0002 SPDX-FileCopyrightText: 2022-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "yandexengineclienttest.h" 0008 #include "../yandexengineclient.h" 0009 #include <QTest> 0010 QTEST_MAIN(YandexEngineClientTest) 0011 0012 YandexEngineClientTest::YandexEngineClientTest(QObject *parent) 0013 : QObject{parent} 0014 { 0015 } 0016 0017 void YandexEngineClientTest::shouldHaveDefaultValues() 0018 { 0019 YandexEngineClient client; 0020 QCOMPARE(client.name(), QStringLiteral("yandex")); 0021 QVERIFY(client.createTranslator()); 0022 QVERIFY(!client.translatedName().isEmpty()); 0023 QVERIFY(!client.supportedFromLanguages().isEmpty()); 0024 QVERIFY(!client.supportedToLanguages().isEmpty()); 0025 QVERIFY(!client.hasConfigurationDialog()); 0026 } 0027 0028 #include "moc_yandexengineclienttest.cpp"