From 4359714d094653bdde355d0a278027d4de78fb72 Mon Sep 17 00:00:00 2001 From: Jonas Date: Thu, 11 Dec 2025 11:08:42 +0100 Subject: [PATCH] small fix --- I2_Dobble/bintreeTest.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/I2_Dobble/bintreeTest.c b/I2_Dobble/bintreeTest.c index 699a594..1de9cd2 100644 --- a/I2_Dobble/bintreeTest.c +++ b/I2_Dobble/bintreeTest.c @@ -14,7 +14,7 @@ void test_addToTree_single_element(void) { TreeNode *root = NULL; int value = 10; - int dup = -1; + int dup; root = addToTree(root, &value, sizeof(int), compare, &dup); @@ -29,7 +29,7 @@ void test_addToTree_multiple_elements_and_size(void) { TreeNode *root = NULL; int values[] = {5, 3, 7, 1, 4}; - int dup = 0; + int dup; for (int i = 0; i < 5; i++) root = addToTree(root, &values[i], sizeof(int), compare, &dup); @@ -91,7 +91,7 @@ void test_treeSize_returns_correct_size() TreeNode *root = NULL; int values[] = {8, 3, 10, 1, 6, 14}; - // ersten Baum aufbauen + //Baum aufbauen for (int i = 0; i < 6; i++) root = addToTree(root, &values[i], sizeof(int), compare, NULL);