Skip to content

Commit

Permalink
fix est
Browse files Browse the repository at this point in the history
  • Loading branch information
hugefiver authored Jan 24, 2024
1 parent 51ad48a commit 228ee16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conf/set_utils_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package conf

import (
"slices"
"testing"

"github.com/stretchr/testify/assert"
Expand Down Expand Up @@ -51,6 +52,8 @@ func TestStringSet(t *testing.T) {
ass.Equal(ss4, ss)

// `ss.Keys`, `ss.Len`
ass.Equal(ss.Keys(), []string{"a", "b", "c"})
ass.Equal(ss.Len(), 3)
keys := ss.Keys()
slices.Sort(keys)
ass.Equal([]string{"a", "b", "c"}, keys)
ass.Equal(3, ss.Len())
}

0 comments on commit 228ee16

Please sign in to comment.