mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +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)
|
||||
}
|
||||
|
||||
var hclWriteExpected = []byte(`"foos" {
|
||||
"foo" {
|
||||
"key" 1
|
||||
var hclWriteExpected = []byte(`"foos" = {
|
||||
"foo" = {
|
||||
"key" = 1
|
||||
}
|
||||
|
||||
"foo" {
|
||||
"key" 2
|
||||
"foo" = {
|
||||
"key" = 2
|
||||
}
|
||||
|
||||
"foo" {
|
||||
"key" 3
|
||||
"foo" = {
|
||||
"key" = 3
|
||||
}
|
||||
|
||||
"foo" {
|
||||
"key" 4
|
||||
"foo" = {
|
||||
"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) {
|
||||
v := New()
|
||||
|
|
Loading…
Add table
Reference in a new issue