2011-02-09 00:58:26 +01:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2018-01-14 15:37:52 +01:00
|
|
|
* Copyright (C) 2007-2017 Cppcheck team.
|
2011-02-09 00:58:26 +01:00
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2011-02-08 22:30:46 +01:00
|
|
|
#include <QtTest>
|
|
|
|
#include <QObject>
|
2011-02-09 00:58:26 +01:00
|
|
|
#include "testtranslationhandler.h"
|
2011-02-08 22:30:46 +01:00
|
|
|
#include "translationhandler.h"
|
|
|
|
|
|
|
|
void TestTranslationHandler::construct()
|
|
|
|
{
|
|
|
|
TranslationHandler handler;
|
2017-08-13 11:04:37 +02:00
|
|
|
QCOMPARE(handler.getNames().size(), 13); // 12 translations + english
|
|
|
|
QCOMPARE(handler.getCurrentLanguage(), QString("en"));
|
2011-02-08 22:30:46 +01:00
|
|
|
}
|
2011-06-10 10:58:55 +02:00
|
|
|
|
2011-06-10 13:22:52 +02:00
|
|
|
QTEST_MAIN(TestTranslationHandler)
|