aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test.ini166
-rw-r--r--tests/test0.ini17
-rw-r--r--tests/test2.ini99
-rw-r--r--tests/test3.ini91
-rw-r--r--tests/test4.ini56
5 files changed, 195 insertions, 234 deletions
diff --git a/tests/test.ini b/tests/test.ini
index a7706c3..af1da51 100644
--- a/tests/test.ini
+++ b/tests/test.ini
@@ -1,79 +1,87 @@
-
-
-;Comments are started with '#' or ';'
-; Inline comments are allowed.
-; EMPTY/BLANK lines are not processed!
-
-;Global variables are allowed
-# Parameters without section are global variables.
-global1 = 11
-global2 = aaa
-
-; The First character of Section name should be alphanumerical, but
-# another caharacters can be Alphanumerical or dot(.)/underscore(_)/hyphen(-)/space(' ')
-[Sections.are_ASCII-alnum characters]
-
-;Parameter values in itself:
-# can be ASCII Alphanumerical only, without any SPACE or TAB character.
-# Should start with alphanumerical, and from the second character,
-# can contain (with dot(.) or underscore(_) or hyphen(-))
-# If you want to use other characters, you should enclose them between two double-quotation-mark(") sign.
-parameter = value-in_itself-are-Alnum.ascii
-
-;Parameter names are ASCII alphanumerical only, with additional dot(.) or underscore(_) or hyphen(-) or suare-bracket([/]) characters.
-# Square-brackets([/]) are allowed for arrays.
-parameter_names.also-ASCII = value
-
-[Section 2]
-;For other value characters:
-# The Space, or any other special characters are 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! Multiline Parameters are supported:
-parameter3 = "With double quotation mark \
-I can write multiline values, but I shoud \
-escapse the trailing newline with '\' sign!"
-
-
-
-
-[E X A M P L E S] ;comment #OK
-
-abcdefgh ;WRONG
-abcdefgh = ;CORRECT
-abcdefgh == ;WRONG
-abcdefgh = "==" ;CORRECT
-=abcd ;ERROR
-= ;xxxx ;ERROR
-
-param=value;inline_comment #OK
- param = value #OK
-param = value1 value2 #ERROR
-param = value1\ value2 #ERROR
-paramß = value1_value2 #ERROR
-
- [example ;section] #WRONG
-[example \;section] #WRONG
-
- param = "qwerty \"qwerty\" abcdefh " ;CORRECT
- param = "qwerty"qwerty ;WRONG
- param = "qwerty" ;OK
-
- array[0123] = "asdasd" #OK
- array [1234] = dfgdfg #WRONG
- array[_] = "jkljkl" #OK
- array[abc] = aaaa #OK
- array.abc = aaaa #OK
- array[abc] = "" #OK
-
-#### qwerty $ۧ qwerty #### ;OK
-
-test = -1.1 #OK
-test2 = "-1.1" #OK
-test3 = _aaa #WRONG
-test4 = .aaa #WRONG
-test5 = aa.a #OK
-ip = 127.0.0.1 #OK
-ip = "127.0.0.1" #OK
-
+
+
+;Comments are started with '#' or ';'
+; Inline comments are allowed.
+; EMPTY/BLANK lines are not processed!
+
+;Global variables are allowed
+# Parameters without section are global variables.
+global1 = 11
+global2 = aaa
+
+; The First character of Section name should be alphanumerical, but
+# another caharacters can be Alphanumerical or dot(.)/underscore(_)/hyphen(-)/space(' ')
+[Sections.are_ASCII-alnum characters]
+
+;Parameter values in itself:
+# can be ASCII Alphanumerical only, without any SPACE or TAB character.
+# Should start with alphanumerical, and from the second character,
+# can contain (with dot(.) or underscore(_) or hyphen(-))
+# If you want to use other characters, you should enclose them between two double-quotation-mark(") sign.
+parameter = value-in_itself-are-Alnum.ascii
+
+;Parameter names are ASCII alphanumerical only, with additional dot(.) or underscore(_) or hyphen(-) or suare-bracket([/]) characters.
+# Square-brackets([/]) are allowed for arrays.
+parameter_names.also-ASCII = value
+
+[Section 2]
+;For other value characters:
+# The Space, or any other special characters are 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! Multiline Parameters are supported:
+parameter3 = "With double quotation mark \
+I can write multiline values, but I shoud \
+escapse the trailing newline with '\' sign!"
+
+
+
+
+[E X A M P L E S] ;comment #OK
+
+abcdefgh ;WRONG
+abcdefgh = ;CORRECT
+abcdefgh == ;WRONG
+abcdefgh = "==" ;CORRECT
+=abcd ;ERROR
+= ;xxxx ;ERROR
+
+param=value;inline_comment #OK
+ param = value #OK
+param = value1 value2 #ERROR
+param = value1\ value2 #ERROR
+paramß = value1_value2 #ERROR
+
+ [example ;section] #WRONG
+[example \;section] #WRONG
+
+ param = "qwerty \"qwerty\" abcdefh " ;CORRECT
+ param = "qwerty"qwerty ;WRONG
+ param = "qwerty" ;OK
+
+ array[0123] = "asdasd" #OK
+ array [1234] = dfgdfg #WRONG
+ array[_] = "jkljkl" #OK
+ array[abc] = aaaa #OK
+ array.abc = aaaa #OK
+ array[abc] = "" #OK
+
+#### qwerty $ۧ qwerty #### ;OK
+
+test = -1.1 #OK
+test2 = "-1.1" #OK
+test3 = _aaa #WRONG
+test4 = aaa_ #OK
+test5 = .aaa #WRONG
+test6 = aaa. #OK
+test6 = aa.a #OK
+
+
+[server_options] ;OK
+server_ = ;xxxx ;OK
+server_ = server.example.com ;OK
+_server_= server.example.com ;ERROR
+ip = 127.0.0.1 ;OK
+ip = "127.0.0.1" ;OK
+
diff --git a/tests/test0.ini b/tests/test0.ini
index be4520a..20a7822 100644
--- a/tests/test0.ini
+++ b/tests/test0.ini
@@ -35,3 +35,20 @@ ggg = aaa #commnta
;wqeweq \
;aabcd=efgh "
+
+
+ ; last modified 1 April 2001 by John Doe
+ [owner] ;_name_;_J_organization_;_A
+ [database] ; ; use IP address i
+server_ = ;_1s Inc._port_;_1]_file_;
+
+
+ [database] ;
+_komment2_;_"ied 1 April 2001 by John Doe
+
+ [database] ;ezzel mi legyen?
+ [database] ; [database] ; [ez_jobb] ;;
+ [ez_jobb] ;] #hiba
+
+ [ez_jobb] ; = valami # ez is hiba (duplán)
+ [ez_jobb] ### hiba
diff --git a/tests/test2.ini b/tests/test2.ini
deleted file mode 100644
index ac861fc..0000000
--- a/tests/test2.ini
+++ /dev/null
@@ -1,99 +0,0 @@
-
- [client] ;đdfsdf ;
-
-
-kell = "kell kell \nasdasd "
-valami = "valami : valami"カガ \;
-ৌ⠓⠋
-éáéűáéőőüöüöüöüöüöü = ゲ dfgdfklčkćčžčćžpšđgl\;⠋⠋éé
-
-ini = mini
-
-;hjkhjkhkj
-
- array[012012] = "asdasd" ;jhjklhk
- arr ay [1234] = dfgdfg ;;HIBA
- aray[_] = "jkjlj" ;opőoő
-kelll
-kééél = valami ;;HIBA
-
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjkl
-
-
-
-aaa
-b
-hib\;a
-ittnasd[21n3] = ni\;\n\;\;#\;;\nsdf
-ঘঃ
-test = ;test
-test2 =
-test3 =
-=012012
- = ;sdfs
-
-
-asdasdasd[sdf] = "";
- ;fghfgh
-#####;
-;abcdefghijklmnopqrst
-;;;;
-### Test confi\ng
-abc
- .
-
-
-
- #valami
- port = "945444"গléáléáléáléáléá
- +++
- [server] . ; ghgjhg ;;HIBA
- ;
- ;
-
- host = "hoszt.my.ip";
-port = "945444"গ
-name = "valami"
-
- ;
- ;.
-
-
-
-
- [client] ;đdfsdf ;
-
-
-kell = "kell kell \nasdasd "
-valami = "valami : valami"カガ \;
-ৌ⠓⠋
-éáéűáéőőüöüöüöüöüöü = ゲ dfgdfklčkćčžčćžpšđgl\;⠋⠋éé
-
-ini = mini
-
-;hjkhjkhkj
-
- array[012012] = "asdasd" ;jhjklhk
- arr ay [1234] = dfgdfg ;;HIBA
- aray[_] = "jkjlj" ;opőoő
-kelll
-kééél = valami ;;HIBA
-
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjkl
-
-
-
-aaa
-b
-hib\;a
-ittnasd[21n3] = ni\;\n\;\;#\;;\nsdf
-ঘঃ
-test = ;test
-test2 =
-test3 =
-=012012
- = ;sdfs
-
-
-asdasdasd[sdf] = "";
-v
diff --git a/tests/test3.ini b/tests/test3.ini
index 1fde0c3..15684e2 100644
--- a/tests/test3.ini
+++ b/tests/test3.ini
@@ -1,4 +1,35 @@
+ ; last modified 1 April 2001 by John Doe
+ [owner] ;_name_;_J_organization_;_A
+ [database] ; ; use IP address in case network name resolution is not working
+_server_;_1s Inc._port_;_1]_file_;_"2_komment_;_"" [database] ; [database] ; [database] ; [database] ; [database] ; [database] ;
+
+
+ [database] ;
+_komment2_;_"ied 1 April 2001 by John Doe
+
+ [database] ;ezzel mi legyen?
+ [database] ; [database] ; [ez_jobb] ;;
+ [ez_jobb] ;] #hiba
+
+ [ez_jobb] ; = valami # ez is hiba (duplán)
+ [ez_jobb] ### hiba
+
+
+_ezzzelmivan_#_
+
+
+
+ #sdf df
+ [elso] # ghj ;h
+
+_var1_;_lé
+_var2_;_mok
+
+ [nulladik] ;lé
+
+_test_;_"_test_;_"]_array[1234]_;_"iba
+
global=aaa
@@ -58,3 +89,63 @@ test = "abcd"
test = 1233.1234
abbc = cde
+ [client] ;đdfsdf ;
+
+
+kell = "kell kell \nasdasd "
+valami = "valami : valami"カガ \;
+ৌ⠓⠋
+éáéűáéőőüöüöüöüöüöü = ゲ dfgdfklčkćčžčćžpšđgl\;⠋⠋éé
+
+ini = mini
+
+;hjkhjkhkj
+
+ array[012012] = "asdasd" ;jhjklhk
+ arr ay [1234] = dfgdfg ;;HIBA
+ aray[_] = "jkjlj" ;opőoő
+kelll
+kééél = valami ;;HIBA
+
+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjkl
+
+
+
+aaa
+b
+hib\;a
+ittnasd[21n3] = ni\;\n\;\;#\;;\nsdf
+ঘঃ
+test = ;test
+test2 =
+test3 =
+=012012
+ = ;sdfs
+
+
+asdasdasd[sdf] = "";
+ ;fghfgh
+#####;
+;abcdefghijklmnopqrst
+;;;;
+### Test confi\ng
+abc
+ .
+
+
+
+ #valami
+ port = "945444"গléáléáléáléáléá
+ +++
+ [server] . ; ghgjhg ;;HIBA
+ ;
+ ;
+
+ host = "hoszt.my.ip";
+port = "945444"গ
+name = "valami"
+
+ ;
+ ;.
+
+ \ No newline at end of file
diff --git a/tests/test4.ini b/tests/test4.ini
deleted file mode 100644
index 13277d4..0000000
--- a/tests/test4.ini
+++ /dev/null
@@ -1,56 +0,0 @@
-
- ;fghfgh
-;;;
-#####;
-;abcdefghijklmnopqrst
-
-;;;;
-### Test confi\ng
-abc
- .
-
-
- #valami
- port = "945444"গléáléáléáléáléá
- +++
- [server] . ; ghgjhg ;;HIBA
- ;
- ;
-
- host = "hoszt.my.ip";
-port = "945444"গ
-name = "valami"
-
- ;
-
-
- [client] ;đdfsdf ;
-
-kell = "kell kell \nasdasd "
-valami = "valami : valami"カガ \;
-ৌ⠓⠋
-éáéűáéőőüöüöüöüöüöü = ゲ dfgdfklčkćčžčćžpšđgl\;⠋⠋éé
-
-ini = mini
-;hjkhjkhkj
-
- array[012012] = "asdasd" ;jhjklhk
- arr ay [1234] = dfgdfg ;;HIBA
- aray[_] = "jkjlj" ;opőoő
-kelll
-kééél = valami ;;HIBA
-
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxjkl
-
-
-hib\;a
-ittnasd[21n3] = ni\;\n\;\;#\;;\nsdf
-ঘঃ
-test = ;test
-test2 =
-test3 =
-=012012
- = ;sdfs
-
-
-asdasdasd[sdf] = "";