Skip to content

Commit

Permalink
Merge pull request Alinshans#115 from Vsevolod039/fix-condition
Browse files Browse the repository at this point in the history
delete useless if else condition
  • Loading branch information
Alinshans authored Oct 30, 2022
2 parents a4f9d75 + 76d71b0 commit dca8155
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Test/algorithm_test.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef MYTINYSTL_ALGORITHM_TEST_H_
#ifndef MYTINYSTL_ALGORITHM_TEST_H_
#define MYTINYSTL_ALGORITHM_TEST_H_

// 算法测试: 包含了 mystl 的 81 个算法测试
Expand Down Expand Up @@ -790,7 +790,6 @@ TEST(nth_element_test)
for (int i = 0; i < 9; ++i)
{
if (i < 8 && arr3[i] > arr3[8]) arr3_left_less = false;
else if (i > 8 && arr3[i] < arr3[8]) arr3_right_greater = false;
}
for (int i = 0; i < 16; ++i)
{
Expand Down

0 comments on commit dca8155

Please sign in to comment.