diff options
-rw-r--r-- | test/common/algorithm.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/common/algorithm.h b/test/common/algorithm.h index b07eb2996e..253bc10cec 100644 --- a/test/common/algorithm.h +++ b/test/common/algorithm.h @@ -53,8 +53,12 @@ public: Common::List<item> list; for(int i = 0; i < n; ++i) { list.push_back(item(i)); - Common::sort(list.begin(), list.end(), item_cmp()); - check_sort(list.begin(), list.end(), item_cmp()); } + Common::sort(list.begin(), list.end(), item_cmp()); + check_sort(list.begin(), list.end(), item_cmp()); + //already sorted + Common::sort(list.begin(), list.end(), item_cmp()); + check_sort(list.begin(), list.end(), item_cmp()); } }; + |