diff options
author | janrupf <werbung.janrupf@t-online.de> | 2019-06-18 13:18:51 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-06-21 23:46:54 +0200 |
commit | 7b52b8689be4243f287966ae9c9a50a8a614e49e (patch) | |
tree | 037f68a54ee4c925234d79c1accf5b1e661c87dc /api/logic/settings | |
parent | d21700ee919adda0bb72ea44262c99e06b13d04a (diff) | |
download | MultiMC-7b52b8689be4243f287966ae9c9a50a8a614e49e.tar MultiMC-7b52b8689be4243f287966ae9c9a50a8a614e49e.tar.gz MultiMC-7b52b8689be4243f287966ae9c9a50a8a614e49e.tar.lz MultiMC-7b52b8689be4243f287966ae9c9a50a8a614e49e.tar.xz MultiMC-7b52b8689be4243f287966ae9c9a50a8a614e49e.zip |
NOISSUE Test comment escaping with unit tests
Diffstat (limited to 'api/logic/settings')
-rw-r--r-- | api/logic/settings/INIFile_test.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/logic/settings/INIFile_test.cpp b/api/logic/settings/INIFile_test.cpp index 45f70973..08c2155e 100644 --- a/api/logic/settings/INIFile_test.cpp +++ b/api/logic/settings/INIFile_test.cpp @@ -26,6 +26,7 @@ slots: 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\""; + QTest::newRow("Hashtags") << "some data#something"; } void test_Escape() { @@ -40,7 +41,7 @@ slots: void test_SaveLoad() { QString a = "a"; - QString b = "a\nb\t\n\\\\\\C:\\Program files\\terrible\\name\\of something\\"; + QString b = "a\nb\t\n\\\\\\C:\\Program files\\terrible\\name\\of something\\#thisIsNotAComment"; QString filename = "test_SaveLoad.ini"; // save |