Files
LeetCode-Go/leetcode/0225.Implement-Stack-using-Queues/225. Implement Stack using Queues_test.go
2020-08-07 17:06:53 +08:00

24 lines
472 B
Go

package leetcode
import (
"fmt"
"testing"
)
func Test_Problem225(t *testing.T) {
obj := Constructor225()
fmt.Printf("obj = %v\n", obj)
param5 := obj.Empty()
fmt.Printf("param_5 = %v\n", param5)
obj.Push(2)
fmt.Printf("obj = %v\n", obj)
obj.Push(10)
fmt.Printf("obj = %v\n", obj)
param2 := obj.Pop()
fmt.Printf("param_2 = %v\n", param2)
param3 := obj.Top()
fmt.Printf("param_3 = %v\n", param3)
param4 := obj.Empty()
fmt.Printf("param_4 = %v\n", param4)
}