1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-05-04 23:46:48 +08:00
parent 5f9203404b
commit 917bad7494
6 changed files with 83 additions and 63 deletions

View File

@ -7,7 +7,7 @@ import (
)
func TestStack(t *testing.T) {
arrayStack := new(collections.ArrayStack)
arrayStack := collections.NewArrayStack[string]()
arrayStack.Push("cat")
arrayStack.Push("dog")
arrayStack.Push("hen")
@ -19,6 +19,6 @@ func TestStack(t *testing.T) {
arrayStack.Push("drag")
t.Log("pop:", arrayStack.Pop())
arrayStack.Push("test")
s := arrayStack.Pop().(string)
s := arrayStack.Pop()
t.Log(s)
}