mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 09:23:19 +08:00
规范格式
This commit is contained in:
19
leetcode/0706.Design-HashMap/706. Design HashMap_test.go
Normal file
19
leetcode/0706.Design-HashMap/706. Design HashMap_test.go
Normal file
@ -0,0 +1,19 @@
|
||||
package leetcode
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_Problem706(t *testing.T) {
|
||||
obj := Constructor706()
|
||||
obj.Put(7, 10)
|
||||
fmt.Printf("Get 7 = %v\n", obj.Get(7))
|
||||
obj.Put(7, 20)
|
||||
fmt.Printf("Contains 7 = %v\n", obj.Get(7))
|
||||
param1 := obj.Get(100)
|
||||
fmt.Printf("param1 = %v\n", param1)
|
||||
obj.Remove(7)
|
||||
param1 = obj.Get(7)
|
||||
fmt.Printf("param1 = %v\n", param1)
|
||||
}
|
Reference in New Issue
Block a user