@@ -66,13 +66,13 @@ TEST test_bst(void) {
66
66
67
67
char * a , * b , * c , * d ;
68
68
69
- a = binary_tree_search (root , 1 );
69
+ a = binary_tree_get (root , 1 );
70
70
ASSERT_STR_EQ (a , "a" );
71
- b = binary_tree_search (root , 3 );
71
+ b = binary_tree_get (root , 3 );
72
72
ASSERT_STR_EQ (b , "b" );
73
- c = binary_tree_search (root , 5 );
73
+ c = binary_tree_get (root , 5 );
74
74
ASSERT_STR_EQ (c , "c" );
75
- d = binary_tree_search (root , 7 );
75
+ d = binary_tree_get (root , 7 );
76
76
ASSERT_STR_EQ (d , "d" );
77
77
78
78
binary_tree_stack_t stack = (binary_tree_stack_t ){
@@ -109,13 +109,13 @@ TEST test_bst(void) {
109
109
ASSERT_EQ (root -> left -> left -> left -> key , 1 );
110
110
ASSERT_EQ (root -> left -> left -> right -> key , 3 );
111
111
112
- a = binary_tree_search (root , 1 );
112
+ a = binary_tree_get (root , 1 );
113
113
ASSERT_STR_EQ (a , "a" );
114
- b = binary_tree_search (root , 3 );
114
+ b = binary_tree_get (root , 3 );
115
115
ASSERT_STR_EQ (b , "b" );
116
- c = binary_tree_search (root , 5 );
116
+ c = binary_tree_get (root , 5 );
117
117
ASSERT_STR_EQ (c , "c" );
118
- d = binary_tree_search (root , 7 );
118
+ d = binary_tree_get (root , 7 );
119
119
ASSERT_STR_EQ (d , "d" );
120
120
121
121
candidate = binary_tree_candidate_leaf (root , 3 , & stack );
@@ -136,13 +136,13 @@ TEST test_bst(void) {
136
136
ASSERT_EQ (root -> right -> left -> key , 5 );
137
137
ASSERT_EQ (root -> right -> right -> key , 7 );
138
138
139
- a = binary_tree_search (root , 1 );
139
+ a = binary_tree_get (root , 1 );
140
140
ASSERT_STR_EQ (a , "a" );
141
- b = binary_tree_search (root , 3 );
141
+ b = binary_tree_get (root , 3 );
142
142
ASSERT_STR_EQ (b , "b" );
143
- c = binary_tree_search (root , 5 );
143
+ c = binary_tree_get (root , 5 );
144
144
ASSERT_STR_EQ (c , "c" );
145
- d = binary_tree_search (root , 7 );
145
+ d = binary_tree_get (root , 7 );
146
146
ASSERT_STR_EQ (d , "d" );
147
147
148
148
binary_tree_rotate_right (root );
@@ -167,13 +167,13 @@ TEST test_bst(void) {
167
167
ASSERT_EQ (root -> right -> right -> left -> key , 5 );
168
168
ASSERT_EQ (root -> right -> right -> right -> key , 7 );
169
169
170
- a = binary_tree_search (root , 1 );
170
+ a = binary_tree_get (root , 1 );
171
171
ASSERT_STR_EQ (a , "a" );
172
- b = binary_tree_search (root , 3 );
172
+ b = binary_tree_get (root , 3 );
173
173
ASSERT_STR_EQ (b , "b" );
174
- c = binary_tree_search (root , 5 );
174
+ c = binary_tree_get (root , 5 );
175
175
ASSERT_STR_EQ (c , "c" );
176
- d = binary_tree_search (root , 7 );
176
+ d = binary_tree_get (root , 7 );
177
177
ASSERT_STR_EQ (d , "d" );
178
178
179
179
candidate = binary_tree_candidate_leaf (root , 7 , & stack );
0 commit comments