(t *testing.T)
| 35 | } |
| 36 | |
| 37 | func TestFixedSet_Reset(t *testing.T) { |
| 38 | var a = assert.NewAssertion(t) |
| 39 | |
| 40 | var set = setutils.NewFixedSet(3) |
| 41 | set.Push(1) |
| 42 | set.Push(2) |
| 43 | set.Push(3) |
| 44 | set.Reset() |
| 45 | a.IsTrue(set.Size() == 0) |
| 46 | } |
| 47 | |
| 48 | func BenchmarkFixedSet_Has(b *testing.B) { |
| 49 | var count = 1_000_000 |