Skip to content

Commit

Permalink
assert one last test before release
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaqx committed Jul 18, 2024
1 parent 498b47e commit 1a1a520
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions unmarshal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,14 @@ func TestParseTag(t *testing.T) {
required: false,
},
},
{
Tag: "SQUARE_BRACKETS,default=[item1,item2,item3],required",
ExpectedOpts: tagOptions{
keys: []string{"SQUARE_BRACKETS"},
fallback: "item1,item2,item3",
required: true,
},
},
}

for _, tc := range testCases {
Expand Down

0 comments on commit 1a1a520

Please sign in to comment.