Commit 7d997e41 authored by Milian Wolff's avatar Milian Wolff
Browse files

use proper name in test_stringhelpers for test suite

The code was copy and pasted before in 0ff0a081. This test here
definitely doesn't test the DUChain. Use TestStringHelpers as
name instead.
parent dd9cc171
......@@ -11,16 +11,16 @@
#include <language/duchain/stringhelpers.h>
QTEST_MAIN(TestDUChain)
QTEST_MAIN(TestStringHelpers)
using namespace KDevelop;
void TestDUChain::initTestCase()
void TestStringHelpers::initTestCase()
{
QStandardPaths::setTestModeEnabled(true);
}
void TestDUChain::testFormatComment_data()
void TestStringHelpers::testFormatComment_data()
{
QTest::addColumn<QByteArray>("input");
QTest::addColumn<QByteArray>("output");
......@@ -106,7 +106,7 @@ void TestDUChain::testFormatComment_data()
) << QByteArrayLiteral("line1\n line2");
}
void TestDUChain::testFormatComment()
void TestStringHelpers::testFormatComment()
{
QFETCH(QByteArray, input);
QFETCH(QByteArray, output);
......@@ -114,7 +114,7 @@ void TestDUChain::testFormatComment()
QCOMPARE(formatComment(input), output);
}
void TestDUChain::benchFormatComment()
void TestStringHelpers::benchFormatComment()
{
QBENCHMARK {
formatComment(QByteArrayLiteral(
......
......@@ -9,7 +9,7 @@
#include <QObject>
class TestDUChain
class TestStringHelpers
: public QObject
{
Q_OBJECT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment