hello-algo/codes/go/pkg/list_node_test.go

17 lines
317 B
Go
Raw Normal View History

2022-11-25 12:24:51 +00:00
// File: list_node_test.go
// Created Time: 2022-11-25
// Author: Reanon (793584285@qq.com)
package pkg
import "testing"
func TestListNode(t *testing.T) {
arr := []int{2, 3, 5, 6, 7}
head := ArrayToLinkedListLinkedList(arr)
PrintLinkedList(head)
node := GetListNode(head, 5)
t.Log("Find node: ", node.Val)
}