mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
add test file
This commit is contained in:
15
g/container/gqueue/gqueue_unit_test.go
Normal file
15
g/container/gqueue/gqueue_unit_test.go
Normal file
@ -0,0 +1,15 @@
|
||||
package gqueue_test
|
||||
import (
|
||||
"testing"
|
||||
"github.com/gogf/gf/g/container/gqueue"
|
||||
"github.com/gogf/gf/g/test/gtest"
|
||||
)
|
||||
|
||||
|
||||
func TestQueue_Size(t *testing.T) {
|
||||
q1:=gqueue.New(3)
|
||||
q1.Push(1)
|
||||
q1.Push(2)
|
||||
q1.Push(3)
|
||||
gtest.Assert(q1.Size(),3)
|
||||
}
|
||||
Reference in New Issue
Block a user