mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-04-21 00:07:46 +03:00
parent
f2c5703806
commit
389ef3f00f
@ -11,9 +11,9 @@ test_description="check parse"
|
|||||||
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0001
|
DIR_TEST=$SHARNESS_TEST_DIRECTORY/t0001
|
||||||
|
|
||||||
test_expect_success "Whitespace parse" "
|
test_expect_success "Whitespace parse" "
|
||||||
cfg_parser $DIR_TEST/test1.ini &&
|
cfg_parser $DIR_TEST/whitespace.ini &&
|
||||||
cfg_writer > test1.out &&
|
cfg_writer > whitespace.out &&
|
||||||
diff -u test1.out $DIR_TEST/test1.out.correct
|
diff -u whitespace.out $DIR_TEST/whitespace.out.correct
|
||||||
"
|
"
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
var2 =hoge
|
var2 =hoge
|
||||||
var3 = fuga
|
var3 = fuga
|
||||||
var4= pivo
|
var4= pivo
|
||||||
|
;section two: quotes
|
||||||
[sec2]
|
[sec2]
|
||||||
;this is the variable we want
|
var1="bar "
|
||||||
var1=bar
|
var2=' foo'
|
||||||
var2=foo
|
|
||||||
var3=eco
|
var3=eco
|
||||||
;this is a multiword value
|
;this is a multiword value
|
||||||
var4="piyo baz qux"
|
var4="piyo baz qux"
|
@ -4,8 +4,8 @@ var2="hoge"
|
|||||||
var3="fuga"
|
var3="fuga"
|
||||||
var4="pivo"
|
var4="pivo"
|
||||||
[sec2]
|
[sec2]
|
||||||
var1="bar"
|
var1="bar "
|
||||||
var2="foo"
|
var2=" foo"
|
||||||
var3="eco"
|
var3="eco"
|
||||||
var4="piyo baz qux"
|
var4="piyo baz qux"
|
||||||
;var5 is an array
|
;var5 is an array
|
Loading…
x
Reference in New Issue
Block a user