@ -0,0 +1,22 @@
package util
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewQueue(t *testing.T) {
q := NewQueue[int]()
for i := 0; i < 10; i++ {
q.Enqueue(i)
}
assert.Equal(t, q.Len(), 10)
assert.Equal(t, q.Dequeue(), i)