mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-06 09:23:19 +08:00
16 lines
297 B
Go
16 lines
297 B
Go
package leetcode
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Problem535(t *testing.T) {
|
|
obj := Constructor()
|
|
fmt.Printf("obj = %v\n", obj)
|
|
e := obj.encode("https://leetcode.com/problems/design-tinyurl")
|
|
fmt.Printf("obj encode = %v\n", e)
|
|
d := obj.decode(e)
|
|
fmt.Printf("obj decode = %v\n", d)
|
|
}
|