diff --git a/test/binarytree.cpp b/test/binarytree.cpp index 9f7ee9a..d703bc2 100644 --- a/test/binarytree.cpp +++ b/test/binarytree.cpp @@ -86,7 +86,7 @@ bool TestDeletion() { if(!tree.Contains(num)) { - std::puts("[INFO] Tree does not contain a value that it should."); + std::puts("[ERROR] Tree does not contain a value that it should."); //std::printf("Value %u inserted but cannot be found!\n", num); return false; } @@ -96,7 +96,7 @@ bool TestDeletion() { if(tree.Contains(num)) { - std::puts("[INFO] Tree contains deleted value that it should not."); + std::puts("[ERROR] Tree contains deleted value that it should not."); return false; } } @@ -125,7 +125,7 @@ bool TestDeletionCase( { if(!tree.Contains(n)) { - std::printf("\tError, tree does not contain value %u.\n", n); + std::printf("[ERROR] Tree does not contain value %u.\n", n); ok = false; } } @@ -134,7 +134,7 @@ bool TestDeletionCase( { if(tree.Contains(n)) { - std::printf("\tError, tree contains deleted value %u.\n", n); + std::printf("[ERROR] Tree contains deleted value %u.\n", n); ok = false; } } @@ -144,25 +144,25 @@ bool TestDeletionCase( bool TestDeletionCases() { - std::puts("Testing deleting root with single child right."); + std::puts("[INFO] Testing deleting root with single child right."); TestDeletionCase( std::vector { 10, 12, 11, 13}, std::vector { 10 }, std::vector { 12, 11, 13 }); - std::puts("Testing deleting root with single child left."); + std::puts("[INFO] Testing deleting root with single child left."); TestDeletionCase( std::vector { 15, 12, 11, 13}, std::vector { 15 }, std::vector { 12, 11, 13 }); - std::puts("Testing deleting root with 2 children but no child right left."); + std::puts("[INFO] Testing deleting root with 2 children but no child right left."); TestDeletionCase( std::vector { 15, 10, 20, 22, 25, 18, 5}, std::vector { 20 }, std::vector { 15, 10, 22, 25, 18, 5 }); - std::puts("Testing deleting root with 2 children."); + std::puts("[INFO] Testing deleting root with 2 children."); TestDeletionCase( std::vector { 50, 40, 60, 75, 55, 45, 42, 58 }, std::vector { 50 },