mirror of
https://github.com/spf13/viper
synced 2025-05-07 12:47:18 +00:00
Modify test for updated HCL specification
This commit is contained in:
parent
6805b2ad85
commit
cf3aa482da
1 changed files with 13 additions and 13 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue