summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-05 14:09:43 +0100
committerdavidovski <david@davidovski.xyz>2022-06-05 14:09:43 +0100
commite6a5137690fb94f6379499f76a4a07811922a379 (patch)
tree65b3af0817c47df20caa4933a8d7e863e984c31c /test
parent830bb145b0e32737a49027b86267557598910446 (diff)
fixed comments not working when preceeded by whitespacev1.5.1
Diffstat (limited to 'test')
-rwxr-xr-xtest/parseconf.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/parseconf.sh b/test/parseconf.sh
index ab28721..1cd668f 100755
--- a/test/parseconf.sh
+++ b/test/parseconf.sh
@@ -50,6 +50,20 @@ key4 value4
[ "$retval" = "key2:value2" ]
}
+test_comments_parsing() {
+ config="
+#key1 value1
+ #key2 value2
+# this is a comment
+#key4 value4
+dict {
+ #nothing here
+}
+ "
+ retval=$(printf "$config" | ${PARSECONF} )
+ [ "x$retval" = "x" ]
+}
+
test_list_parsing() {
config="