Add unit test for empty range

This commit is contained in:
def 2021-05-06 15:39:34 +02:00
parent f99f062d0a
commit 6465e482a1
2 changed files with 10 additions and 0 deletions

View file

@ -2203,6 +2203,7 @@ if(GTEST_FOUND OR DOWNLOAD_GTEST)
netaddr.cpp
packer.cpp
prng.cpp
sorted_array.cpp
str.cpp
strip_path_and_extension.cpp
teehistorian.cpp

View file

@ -0,0 +1,9 @@
#include <gtest/gtest.h>
#include <base/tl/sorted_array.h>
TEST(SortedArray, SortEmptyRange)
{
sorted_array<int> x;
x.sort_range();
}