test(binary_search_tree): update test param

use param value 7, not 5, function test param value with param value in example picture as same.
This commit is contained in:
龚国玮 2022-12-29 14:44:15 +08:00
parent 047e15e8d5
commit a5e923a387

View File

@ -23,7 +23,7 @@ func TestBinarySearchTree(t *testing.T) {
fmt.Println("二叉树的最小结点为:", node.Val)
// 查找结点
node = bst.Search(5)
node = bst.Search(7)
fmt.Println("查找到的结点对象为", node, ",结点值 =", node.Val)
// 插入结点