1
0
Fork 0
forked from External/ergo

correctly support disabling caps with CAP REQ, fixes #337

This commit is contained in:
Shivaram Lingamneni 2019-02-02 20:00:23 -05:00
parent 6667585605
commit f48af3ee44
5 changed files with 55 additions and 9 deletions

View file

@ -60,6 +60,17 @@ func TestSets(t *testing.T) {
}
}
func TestSubtract(t *testing.T) {
s1 := NewSet(AccountTag, EchoMessage, UserhostInNames, ServerTime)
toRemove := NewSet(UserhostInNames, EchoMessage)
s1.Subtract(toRemove)
if !reflect.DeepEqual(s1, NewSet(AccountTag, ServerTime)) {
t.Errorf("subtract doesn't work")
}
}
func BenchmarkSetReads(b *testing.B) {
set := NewSet(UserhostInNames, EchoMessage)
b.ResetTimer()