You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
Those two functions do insertion of values in descending order
Thanks in advance.
The text was updated successfully, but these errors were encountered: