Files
LeetCode-Go/Algorithms/0155. Min Stack/155. Min Stack_test.go
2019-08-10 14:50:03 +08:00

23 lines
423 B
Go

package leetcode
import (
"fmt"
"testing"
)
func Test_Problem155(t *testing.T) {
obj1 := Constructor155()
obj1.Push(1)
fmt.Printf("obj1 = %v\n", obj1)
obj1.Push(0)
fmt.Printf("obj1 = %v\n", obj1)
obj1.Push(10)
fmt.Printf("obj1 = %v\n", obj1)
obj1.Pop()
fmt.Printf("obj1 = %v\n", obj1)
param3 := obj1.Top()
fmt.Printf("param_3 = %v\n", param3)
param4 := obj1.GetMin()
fmt.Printf("param_4 = %v\n", param4)
}