Files
LeetCode-Go/leetcode/0677.Map-Sum-Pairs/677. Map Sum Pairs_test.go

18 lines
338 B
Go

package leetcode
import (
"fmt"
"testing"
)
func Test_Problem677(t *testing.T) {
obj := Constructor()
fmt.Printf("obj = %v\n", obj)
obj.Insert("apple", 3)
fmt.Printf("obj = %v\n", obj)
fmt.Printf("obj.sum = %v\n", obj.Sum("ap"))
obj.Insert("app", 2)
fmt.Printf("obj = %v\n", obj)
fmt.Printf("obj.sum = %v\n", obj.Sum("ap"))
}