Skip to content

Commit

Permalink
Tests: fix ft_mcharsetdetector:testConstructors
Browse files Browse the repository at this point in the history
Note that I have not found when/how this changed so I admit the version
check is quite likely inappropriate.
  • Loading branch information
martyone authored and pvuorela committed Oct 7, 2014
1 parent 2744e0a commit e834007
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ft_mcharsetdetector/ft_mcharsetdetector.cpp
Expand Up @@ -149,8 +149,13 @@ void Ft_MCharsetDetector::testConstructors_data()
QTest::newRow("Invalid EUC-JP, it is really Latin1")
<< "EUC-JP"
<< QString::fromUtf8("Hello Wörld, täst, Grüße.").toLatin1()
#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
<< QString::fromUtf8("Hello W�ld, t�t, Gr�e.")
<< true;
#else
<< QString::fromUtf8("Hello W�rld, t�st, Gre.")
<< false;
#endif
}

void Ft_MCharsetDetector::testConstructors()
Expand Down

0 comments on commit e834007

Please sign in to comment.