From 5f329645369de07844d0d327efc001e949a6b5a9 Mon Sep 17 00:00:00 2001 From: Jeevanandam M Date: Sun, 10 Jul 2016 19:30:08 -0700 Subject: [PATCH] config lines formatted --- section_test.go | 82 ++++++++++++++++++++++++------------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/section_test.go b/section_test.go index d7104b0..5406e53 100644 --- a/section_test.go +++ b/section_test.go @@ -35,40 +35,40 @@ func TestSectionKeys(t *testing.T) { func TestMergeSection(t *testing.T) { config1Str := ` - global = "global value"; - - prod { - value = "string value"; - integer = 500 - float = 80.80 - boolean = true - negative = FALSE - nothing = NULL - } +global = "global value"; + +prod { + value = "string value"; + integer = 500 + float = 80.80 + boolean = true + negative = FALSE + nothing = NULL +} ` config2Str := ` +integer = 500 +float = 80.80 +boolean = true +negative = FALSE +nothing = NULL + +new_section { integer = 500 - float = 80.80 - boolean = true - negative = FALSE - nothing = NULL - - new_section { - integer = 500 - float = 80.80 - boolean = true - negative = FALSE - nothing = NULL - } + float = 80.80 + boolean = true + negative = FALSE + nothing = NULL +} - prod { - value = "new value"; - secret = "shhh"; - nothing = "value" - negative = false - boolean = false - } +prod { + value = "new value"; + secret = "shhh"; + nothing = "value" + negative = false + boolean = false +} ` config1, err := forge.ParseString(config1Str) @@ -116,22 +116,22 @@ func TestMergeSection(t *testing.T) { func TestMergeSectionFailSectionToField(t *testing.T) { config1Str := ` - global = "global value"; - - prod { - value = "string value"; - integer = 500 - float = 80.80 - boolean = true - negative = FALSE - nothing = NULL - } +global = "global value"; + +prod { + value = "string value"; + integer = 500 + float = 80.80 + boolean = true + negative = FALSE + nothing = NULL +} ` config2Str := ` - global = "global value"; +global = "global value"; - prod = "I'm prod value" +prod = "I'm prod value" ` config1, err := forge.ParseString(config1Str)