diff options
Diffstat (limited to 'modules/container/set_test.go')
-rw-r--r-- | modules/container/set_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/container/set_test.go b/modules/container/set_test.go index 1502236034..3cfbf7cc2c 100644 --- a/modules/container/set_test.go +++ b/modules/container/set_test.go @@ -33,4 +33,9 @@ func TestSet(t *testing.T) { assert.False(t, s.Contains("key1")) assert.True(t, s.Contains("key6")) assert.True(t, s.Contains("key7")) + + assert.True(t, s.IsSubset([]string{"key6", "key7"})) + assert.False(t, s.IsSubset([]string{"key1"})) + + assert.True(t, s.IsSubset([]string{})) } |