-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Actually, while seeing UnitTestBST, I found some code which has a potential to derive same results from two different tests, resulting in wrong Unit Test.
Please, check the following code.
/* 정렬하는 데 걸리는 시간 */
TEST_METHOD(BST_Insert_Desc) // 내림차순 입력
{
IntSetBST test(max_e, max_v);
int j = 0;
for (int i = max_e - 1; i >= 0; i--) {
test.insert(max_v - j);
j++;
}
}
TEST_METHOD(BST_Insert_Asce) // 오름차순 입력
{
IntSetBST test(max_e, max_v);
int j = 0;
for (int i = max_e - 1; i >= 0; i--) {
test.insert(max_v - j);
j++;
}
}
Those two functions do insertion of values in descending order
Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels