mirror of
https://github.com/albfan/bash-ini-parser.git
synced 2025-04-19 13:22:14 +03:00
parent
f2c5703806
commit
389ef3f00f
@ -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
|
||||
|
@ -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"
|
Loading…
x
Reference in New Issue
Block a user