gf/geg/other/test.go

18 lines
256 B
Go
Raw Normal View History

2017-11-23 10:21:28 +08:00
package main
2017-12-26 11:46:48 +08:00
2019-04-03 09:59:15 +08:00
import (
2019-06-15 18:30:09 +08:00
"github.com/gogf/gf/g/container/gqueue"
"github.com/gogf/gf/g/test/gtest"
)
2019-05-31 22:54:57 +08:00
func main() {
max := 100
for i := 0; i < 10; i++ {
q := gqueue.New(max)
for i := 1; i < max; i++ {
q.Push(i)
}
gtest.Assert(q.Pop(), 1)
}
2019-06-12 21:06:57 +08:00
}