Skip to content

Commit

Permalink
add cases for trailing comma in SortedSet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed May 17, 2024
1 parent 9a3a70e commit dcadcab
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions internal/headers/sortedset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func TestSortedSet(t *testing.T) {
size: 0,
combined: "",
notSubs: []string{
",",
"x-bar",
"x-bar,x-foo",
},
Expand All @@ -37,6 +38,8 @@ func TestSortedSet(t *testing.T) {
"x-foo",
},
notSubs: []string{
",",
"x-foo,",
"x-bar",
"x-bar,x-foo",
},
Expand All @@ -57,6 +60,14 @@ func TestSortedSet(t *testing.T) {
"x-bar,x-baz,x-foo",
},
notSubs: []string{
",",
"x-bar,",
"x-baz,",
"x-foo,",
"x-bar,x-baz,",
"x-bar,x-foo,",
"x-baz,x-foo,",
"x-bar,x-baz,x-foo,",
"x-qux",
"x-bar,x-baz,x-baz",
"x-qux,x-baz",
Expand All @@ -76,6 +87,10 @@ func TestSortedSet(t *testing.T) {
"x-bar,x-foo",
},
notSubs: []string{
",",
"x-bar,",
"x-foo,",
"x-bar,x-foo,",
"x-qux",
"x-qux,x-bar",
"x-qux,x-foo",
Expand Down

0 comments on commit dcadcab

Please sign in to comment.