mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00

the static initializer was removed since Katie does not require it Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
20 lines
419 B
C++
20 lines
419 B
C++
#include <qtest_kde.h>
|
|
#include <kcharsets.h>
|
|
|
|
class KCharsetsTest : public QObject
|
|
{
|
|
Q_OBJECT
|
|
private Q_SLOTS:
|
|
void resolveEntities();
|
|
};
|
|
|
|
QTEST_KDEMAIN_CORE( KCharsetsTest )
|
|
|
|
void KCharsetsTest::resolveEntities()
|
|
{
|
|
QString input( "<Hello &World>" );
|
|
QString output = KCharsets::resolveEntities( input );
|
|
QCOMPARE(output, QLatin1String("<Hello &World>"));
|
|
}
|
|
|
|
#include "kcharsetstest.moc"
|