2011-02-09 00:58:26 +01:00
|
|
|
/*
|
|
|
|
* Cppcheck - A tool for static C/C++ code analysis
|
2012-01-01 00:05:37 +01:00
|
|
|
* Copyright (C) 2007-2012 Daniel Marjamäki and 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;
|
2011-06-17 12:18:42 +02:00
|
|
|
QCOMPARE(handler.GetNames().size(), 11);
|
|
|
|
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)
|