/*
   SPDX-FileCopyrightText: 2019-2023 Laurent Montel <montel@kde.org>

   SPDX-License-Identifier: GPL-2.0-or-later
*/

#include "grammarresulttextedittest.h"
#include "common/grammarresulttextedit.h"
#include <QStandardPaths>
#include <QTest>
QTEST_MAIN(GrammarResultTextEditTest)

GrammarResultTextEditTest::GrammarResultTextEditTest(QObject *parent)
    : QObject(parent)
{
    QStandardPaths::setTestModeEnabled(true);
}

void GrammarResultTextEditTest::shouldHaveDefaultValue()
{
    TextGrammarCheck::GrammarResultTextEdit w;
    QVERIFY(w.isReadOnly());
    QVERIFY(!w.acceptRichText());
}

#include "moc_grammarresulttextedittest.cpp"
