Skip to content

Commit 597e0a8

Browse files
committed
New test for AVL
1 parent 7866e9c commit 597e0a8

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

test.c

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ int input6_1[TEST_SIZE][11] = {
141141
{20, 200, 5, 2, 3, 25, 5, 2, 3, 25, 5},
142142
{8, -24, -29, 60, -18, 20, 24, -13, -10, -26, 15 },
143143
{38, 6, 1, 90, 12, 50, 54, 17, 20, 4, 45 },
144+
{24, -8, -13, 76, -2, 36, 40, 3, 6, -10, 31 }
144145
};
145146

146147
int input6_2[TEST_SIZE][3] = {
@@ -151,7 +152,8 @@ int input6_2[TEST_SIZE][3] = {
151152
{0, 0, 0},
152153
{0, 0, 25},
153154
{-13, -19, -26},
154-
{17, 11, 4}
155+
{17, 11, 4},
156+
{3, -3, -10}
155157
};
156158

157159

@@ -199,9 +201,20 @@ int expected_output6[TEST_SIZE][11] = {
199201
{1, 2, 3, 4, 5, 6, 7},
200202
{2, 3, 5, 20, 200},
201203
{-29, -24, -18, -10, 8, 15, 20, 24, 60},
202-
{1, 6, 12, 20, 38, 45, 50, 54, 90}
204+
{1, 6, 12, 20, 38, 45, 50, 54, 90},
205+
{-13, -8, -2, 6, 24, 31, 36, 40, 76}
203206
};
204207

208+
int expected_output7[TEST_SIZE][11] = {
209+
{20, 25, 32, 55},
210+
{6, 8, 30},
211+
{1, 2, 3, 4, 7},
212+
{2, 20, 25, 200},
213+
{1, 2, 3, 4, 5, 6, 7},
214+
{2, 3, 5, 20, 200},
215+
{-29, -24, -18, -10, 8, 15, 20, 24, 60},
216+
{1, 6, 12, 20, 38, 45, 50, 54, 90}
217+
};
205218

206219

207220
int main(int argc, char *argv[]) {

0 commit comments

Comments
 (0)