aboutsummaryrefslogtreecommitdiff
path: root/autotests/test_kconfigutils.cpp
diff options
context:
space:
mode:
authorDavid Faure <faure@kde.org>2013-12-18 09:53:59 +0100
committerDavid Faure <faure@kde.org>2013-12-18 09:53:59 +0100
commit159963832457e6307282308455330acc7b5bd153 (patch)
treece1cc0234d37e9afc75bc86d734beb963ed57d02 /autotests/test_kconfigutils.cpp
parent867e7a50e6396338ab4fe9aa22ad141e4cd344d2 (diff)
downloadkconfig-159963832457e6307282308455330acc7b5bd153.tar.gz
kconfig-159963832457e6307282308455330acc7b5bd153.tar.bz2
Code reformatted using kde-dev-scripts/astyle-kdelibs.
Use git blame -w 867e7a5 to show authorship as it was before this commit.
Diffstat (limited to 'autotests/test_kconfigutils.cpp')
-rw-r--r--autotests/test_kconfigutils.cpp88
1 files changed, 44 insertions, 44 deletions
diff --git a/autotests/test_kconfigutils.cpp b/autotests/test_kconfigutils.cpp
index 176d771f..b28e8e0a 100644
--- a/autotests/test_kconfigutils.cpp
+++ b/autotests/test_kconfigutils.cpp
@@ -36,28 +36,28 @@ void TestKConfigUtils::testParseGroupString_data()
QTest::addColumn<bool>("expectedOk");
QTest::newRow("simple-group")
- << " group "
- << (QStringList() << "group")
- << true
- ;
+ << " group "
+ << (QStringList() << "group")
+ << true
+ ;
QTest::newRow("sub-group")
- << "[group][sub]"
- << (QStringList() << "group" << "sub")
- << true
- ;
+ << "[group][sub]"
+ << (QStringList() << "group" << "sub")
+ << true
+ ;
QTest::newRow("crazy-sub-group")
- << "[a\\ttab\\x5d[and some hex esc\\x61pe]"
- << (QStringList() << "a\ttab" << "and some hex escape")
- << true
- ;
+ << "[a\\ttab\\x5d[and some hex esc\\x61pe]"
+ << (QStringList() << "a\ttab" << "and some hex escape")
+ << true
+ ;
QTest::newRow("missing-closing-brace")
- << "[group][sub"
- << QStringList()
- << false
- ;
+ << "[group][sub"
+ << QStringList()
+ << false
+ ;
}
void TestKConfigUtils::testParseGroupString()
@@ -86,46 +86,46 @@ void TestKConfigUtils::testUnescapeString_data()
QTest::addColumn<bool>("expectedOk");
QTest::newRow("plain")
- << "Some text"
- << "Some text"
- << true
- ;
+ << "Some text"
+ << "Some text"
+ << true
+ ;
QTest::newRow("single-char-escapes")
- << "01\\s23\\t45\\n67\\r89\\\\"
- << "01 23\t45\n67\r89\\"
- << true
- ;
+ << "01\\s23\\t45\\n67\\r89\\\\"
+ << "01 23\t45\n67\r89\\"
+ << true
+ ;
QTest::newRow("hex-escapes")
- << "kd\\x65"
- << "kde"
- << true
- ;
+ << "kd\\x65"
+ << "kde"
+ << true
+ ;
QTest::newRow("unfinished-hex-escape")
- << "kd\\x6"
- << ""
- << false
- ;
+ << "kd\\x6"
+ << ""
+ << false
+ ;
QTest::newRow("invalid-hex-escape")
- << "kd\\xzz"
- << ""
- << false
- ;
+ << "kd\\xzz"
+ << ""
+ << false
+ ;
QTest::newRow("invalid-escape-sequence")
- << "Foo\\a"
- << ""
- << false
- ;
+ << "Foo\\a"
+ << ""
+ << false
+ ;
QTest::newRow("unfinished-escape-sequence")
- << "Foo\\"
- << ""
- << false
- ;
+ << "Foo\\"
+ << ""
+ << false
+ ;
}
void TestKConfigUtils::testUnescapeString()