Modify test for updated HCL specification

This commit is contained in:
Herkermer Sherwood 2016-12-15 10:42:29 -08:00
parent 6805b2ad85
commit cf3aa482da

View file

@ -848,31 +848,31 @@ func TestSub(t *testing.T) {
assert.Equal(t, (*Viper)(nil), subv) assert.Equal(t, (*Viper)(nil), subv)
} }
var hclWriteExpected = []byte(`"foos" { var hclWriteExpected = []byte(`"foos" = {
"foo" { "foo" = {
"key" 1 "key" = 1
} }
"foo" { "foo" = {
"key" 2 "key" = 2
} }
"foo" { "foo" = {
"key" 3 "key" = 3
} }
"foo" { "foo" = {
"key" 4 "key" = 4
} }
} }
"id" "0001" "id" = "0001"
"name" "Cake" "name" = "Cake"
"ppu" 0.55 "ppu" = 0.55
"type" "donut"`) "type" = "donut"`)
func TestWriteConfigHCL(t *testing.T) { func TestWriteConfigHCL(t *testing.T) {
v := New() v := New()