From 389ef3f00fe72612c26f45cfea6e0b4790de5d2f Mon Sep 17 00:00:00 2001 From: albfan Date: Sat, 16 May 2015 20:43:48 +0200 Subject: [PATCH] whitespace use case relates to #4 --- t/t0001-parse.sh | 6 +++--- t/t0001/{test1.ini => whitespace.ini} | 6 +++--- t/t0001/{test1.out.correct => whitespace.out.correct} | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename t/t0001/{test1.ini => whitespace.ini} (81%) rename t/t0001/{test1.out.correct => whitespace.out.correct} (85%) diff --git a/t/t0001-parse.sh b/t/t0001-parse.sh index 968dd9f..e29c313 100755 --- a/t/t0001-parse.sh +++ b/t/t0001-parse.sh @@ -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 diff --git a/t/t0001/test1.ini b/t/t0001/whitespace.ini similarity index 81% rename from t/t0001/test1.ini rename to t/t0001/whitespace.ini index 7734bb8..41037cc 100644 --- a/t/t0001/test1.ini +++ b/t/t0001/whitespace.ini @@ -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" diff --git a/t/t0001/test1.out.correct b/t/t0001/whitespace.out.correct similarity index 85% rename from t/t0001/test1.out.correct rename to t/t0001/whitespace.out.correct index 6fc3b36..868e975 100644 --- a/t/t0001/test1.out.correct +++ b/t/t0001/whitespace.out.correct @@ -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