diff options
author | davidovski <david@davidovski.xyz> | 2022-06-05 14:09:43 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-05 14:09:43 +0100 |
commit | e6a5137690fb94f6379499f76a4a07811922a379 (patch) | |
tree | 65b3af0817c47df20caa4933a8d7e863e984c31c /test/parseconf.sh | |
parent | 830bb145b0e32737a49027b86267557598910446 (diff) |
fixed comments not working when preceeded by whitespacev1.5.1
Diffstat (limited to 'test/parseconf.sh')
-rwxr-xr-x | test/parseconf.sh | 14 |
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=" |