Skip to content

Commit 1a1a520

Browse files
committed
assert one last test before release
1 parent 498b47e commit 1a1a520

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

unmarshal_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,14 @@ func TestParseTag(t *testing.T) {
455455
required: false,
456456
},
457457
},
458+
{
459+
Tag: "SQUARE_BRACKETS,default=[item1,item2,item3],required",
460+
ExpectedOpts: tagOptions{
461+
keys: []string{"SQUARE_BRACKETS"},
462+
fallback: "item1,item2,item3",
463+
required: true,
464+
},
465+
},
458466
}
459467

460468
for _, tc := range testCases {

0 commit comments

Comments
 (0)