mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add unit test for empty range
This commit is contained in:
parent
f99f062d0a
commit
6465e482a1
|
@ -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
|
||||
|
|
9
src/test/sorted_array.cpp
Normal file
9
src/test/sorted_array.cpp
Normal 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();
|
||||
}
|
Loading…
Reference in a new issue