mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-26 23:26:28 +08:00
16 lines
307 B
Go
16 lines
307 B
Go
// 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 := ArrayToLinkedList(arr)
|
|
|
|
PrintLinkedList(head)
|
|
node := GetListNode(head, 5)
|
|
t.Log("Find node: ", node.Val)
|
|
}
|