Skip to content

Commit

Permalink
Add failing test for pelletier#888
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed Aug 28, 2023
1 parent 76cc96f commit 61d5d11
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions marshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,7 @@ func TestMarhsalIssue888(t *testing.T) {
}

type Cfg struct {
Custom []Thing
Custom []Thing `comment:"custom config"`
}

buf := new(bytes.Buffer)
Expand All @@ -1223,7 +1223,8 @@ func TestMarhsalIssue888(t *testing.T) {
encoder := toml.NewEncoder(buf).SetIndentTables(true)
encoder.Encode(config)

expected := `[[Custom]]
expected := `# custom config
[[Custom]]
# my field A
FieldA = 'field a 1'
# my field B
Expand Down

0 comments on commit 61d5d11

Please sign in to comment.