1
0
mirror of https://github.com/albfan/bash-ini-parser.git synced 2025-04-21 00:07:46 +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 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

View File

@ -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"