Skip to content

Commit

Permalink
🚀 Update test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alinshans committed Aug 17, 2017
1 parent dcc554c commit 1fc58d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Test/set_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ void set_test()
#if PERFORMANCE_TEST_ON
std::cout << "[--------------------- Performance Testing ---------------------]" << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
std::cout << "| insert |";
std::cout << "| emplace |";
#if MEMORY_IS_ENOUGH
CON_TEST_P1(set<int>, insert, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
CON_TEST_P1(set<int>, emplace, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
#else
CON_TEST_P1(set<int>, insert, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
CON_TEST_P1(set<int>, emplace, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
#endif
std::cout << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
Expand Down Expand Up @@ -146,11 +146,11 @@ void multiset_test()
#if PERFORMANCE_TEST_ON
std::cout << "[--------------------- Performance Testing ---------------------]" << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
std::cout << "| insert |";
std::cout << "| emplace |";
#if MEMORY_IS_ENOUGH
CON_TEST_P1(multiset<int>, insert, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
CON_TEST_P1(multiset<int>, emplace, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
#else
CON_TEST_P1(multiset<int>, insert, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
CON_TEST_P1(multiset<int>, emplace, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
#endif
std::cout << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
Expand Down
12 changes: 6 additions & 6 deletions Test/unordered_set_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ void unordered_set_test()
#if PERFORMANCE_TEST_ON
std::cout << "[--------------------- Performance Testing ---------------------]" << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
std::cout << "| insert |";
std::cout << "| emplace |";
#if MEMORY_IS_ENOUGH
CON_TEST_P1(unordered_set<int>, insert, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
CON_TEST_P1(unordered_set<int>, emplace, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
#else
CON_TEST_P1(unordered_set<int>, insert, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
CON_TEST_P1(unordered_set<int>, emplace, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
#endif
std::cout << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
Expand Down Expand Up @@ -171,11 +171,11 @@ void unordered_multiset_test()
#if PERFORMANCE_TEST_ON
std::cout << "[--------------------- Performance Testing ---------------------]" << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
std::cout << "| insert |";
std::cout << "| emplace |";
#if MEMORY_IS_ENOUGH
CON_TEST_P1(unordered_multiset<int>, insert, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
CON_TEST_P1(unordered_multiset<int>, emplace, rand(), LEN1 _S, LEN2 _S, LEN3 _S);
#else
CON_TEST_P1(unordered_multiset<int>, insert, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
CON_TEST_P1(unordered_multiset<int>, emplace, rand(), LEN1 _SS, LEN2 _SS, LEN3 _SS);
#endif
std::cout << std::endl;
std::cout << "|---------------------|-------------|-------------|-------------|" << std::endl;
Expand Down

0 comments on commit 1fc58d0

Please sign in to comment.