1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-19 13:22:14 +03:00

whitespace use case

relates to #4
This commit is contained in:
albfan 2015-05-16 20:43:48 +02:00
parent f2c5703806
commit 389ef3f00f
3 changed files with 8 additions and 8 deletions

View File

@ -11,9 +11,9 @@ test_description="check parse"
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0001
test_expect_success "Whitespace parse" "
cfg_parser $DIR_TEST/test1.ini &&
cfg_writer > test1.out &&
diff -u test1.out $DIR_TEST/test1.out.correct
cfg_parser $DIR_TEST/whitespace.ini &&
cfg_writer > whitespace.out &&
diff -u whitespace.out $DIR_TEST/whitespace.out.correct
"
test_done

View File

@ -4,10 +4,10 @@
var2 =hoge
var3 = fuga
var4= pivo
;section two: quotes
[sec2]
;this is the variable we want
var1=bar
var2=foo
var1="bar "
var2=' foo'
var3=eco
;this is a multiword value
var4="piyo baz qux"

View File

@ -4,8 +4,8 @@ var2="hoge"
var3="fuga"
var4="pivo"
[sec2]
var1="bar"
var2="foo"
var1="bar "
var2=" foo"
var3="eco"
var4="piyo baz qux"
;var5 is an array