Skip to content

Peer Edit: UnitTest #8

@h0n9

Description

@h0n9

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions