aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.ini42
-rw-r--r--tests/test0.ini29
2 files changed, 68 insertions, 3 deletions
diff --git a/tests/test.ini b/tests/test.ini
index 5c218d0..46710f0 100644
--- a/tests/test.ini
+++ b/tests/test.ini
@@ -1,4 +1,30 @@
- [A BBCD]
+
+
+# Comments can be '#' or ';'
+
+;Global variables are allowed
+global1 = 11
+global2 = aaa
+
+; The First character of Section or Parameter name should be alphanumerical,
+; another caharacters can ba Alphanumerical or dot(.)/underscore(_)/hyphen(-)
+[Sections.are_ASCII-characters]
+
+; Parameter values, withourt double quotation mark (")
+; ban be like Sections!
+parameter_names.also-ASCII = first.value-like_ascii
+
+; For value characters, the Space, or any other special character allowed only between two double-quotation-mark sign.
+; Escaped characters, (\n, \t, etc.) or multi-byte characters (é, €, カ, ⠋, ঘঃ, 😍) are allowed here.
+parameter2 = "I like \t emojis 😍 but, don't like mosquitoes カ ! :)"
+
+; Even!
+parameter3 = "With double quotation mark \
+I can write multiline values, but I shoud \
+escapse the trailing newline with '\' sign!
+"
+
+ [A B€BCD]
ghijkl=val1 ; komment
ghijkl = val2 ;kom1
ghijkl = val3;kom3
@@ -10,8 +36,10 @@ eee =
fff=
aa=
#commt
- ;#//sdfsdf//
-
+--- ;#//sdfsdf//
+[é]
+aaa=bbb
+cc="=dd"
[test2];#coment
ggg = aaa #commnta
;ad = "123456\
@@ -19,3 +47,11 @@ ggg = aaa #commnta
;wqeweq \
;aabcd=efgh "
+ ;fghfgh
+#####;
+;abcdefghijklmnopqrst
+;;;;
+### Test confi\ng
+abc=
+ ;.
+
diff --git a/tests/test0.ini b/tests/test0.ini
new file mode 100644
index 0000000..65dc41c
--- /dev/null
+++ b/tests/test0.ini
@@ -0,0 +1,29 @@
+ [A BBCD]
+ ad = "Withkdoublekque\
+alffsdasdabbbbbbbbbbbf\
+wqeweaaaaaaaaaaaa111aa\
+aabcd=efgh !"
+
+ppp = aaa
+;parameter3 = "With double quotation mark \I can write multiline values, but I shoud \ escapse the trailing newline with '\' sign!"
+
+ghijkl=val1 ; komment
+ghijkl = val2 ;kom1
+ghijkl = val3;kom3
+ ghijkl=val14;kom14
+ ghijkl = val15;kom15
+ ghijkl = val4;kom11
+
+eee =
+fff=
+aa=
+#commt
+ ;#//sdfsdf//
+
+ [test2];#coment
+ggg = aaa #commnta
+;ad = "123456\
+; aléásdasd #;--Ł$
+;wqeweq \
+;aabcd=efgh "
+