summaryrefslogtreecommitdiffstats
path: root/tests/tst_filematchers.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-08-18 02:25:24 +0200
committerPetr Mrázek <peterix@gmail.com>2015-08-18 08:51:12 +0200
commit96fdaebb5c8c8902c98c1fb43e755cf90fc15198 (patch)
treebb4e1ace6bb0800a5991884d5f07b41267699283 /tests/tst_filematchers.cpp
parent4e3af265dad57a27af4051cb574fb90539d287d0 (diff)
downloadMultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar
MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.gz
MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.lz
MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.tar.xz
MultiMC-96fdaebb5c8c8902c98c1fb43e755cf90fc15198.zip
GH-926 implement log cleaning functionality
Also adds gzip compressed log support
Diffstat (limited to 'tests/tst_filematchers.cpp')
-rw-r--r--tests/tst_filematchers.cpp37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/tst_filematchers.cpp b/tests/tst_filematchers.cpp
new file mode 100644
index 00000000..36286070
--- /dev/null
+++ b/tests/tst_filematchers.cpp
@@ -0,0 +1,37 @@
+#include <QTest>
+#include "TestUtil.h"
+
+class IniFileTest : public QObject
+{
+ Q_OBJECT
+private
+slots:
+
+ void test_FSTree()
+ {
+ /*
+ QTest::addColumn<QString>("through");
+
+ QTest::newRow("unix path") << "/abc/def/ghi/jkl";
+ QTest::newRow("windows path") << "C:\\Program files\\terrible\\name\\of something\\";
+ QTest::newRow("Plain text") << "Lorem ipsum dolor sit amet.";
+ QTest::newRow("Escape sequences") << "Lorem\n\t\n\\n\\tAAZ\nipsum dolor\n\nsit amet.";
+ QTest::newRow("Escape sequences 2") << "\"\n\n\"";
+ */
+ }
+ void test_Regexp()
+ {
+ /*
+ QFETCH(QString, through);
+
+ QString there = INIFile::escape(through);
+ QString back = INIFile::unescape(there);
+
+ QCOMPARE(back, through);
+ */
+ }
+};
+
+QTEST_GUILESS_MAIN(IniFileTest)
+
+#include "tst_filematchers.moc"