[vector/array] Add simple test for sorted size

This commit is contained in:
Behdad Esfahbod 2022-11-13 17:28:09 -07:00
parent 4e618557a6
commit 85e0be1357
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,8 @@ test_reverse_invalid ()
int
main (int argc, char **argv)
{
assert (sizeof (hb_array_t<int>) == sizeof (hb_sorted_array_t<int>));
test_reverse ();
test_reverse_range ();
test_reverse_invalid ();

View File

@ -32,6 +32,7 @@
int
main (int argc, char **argv)
{
assert (sizeof (hb_vector_t<int>) == sizeof (hb_sorted_vector_t<int>));
/* Test copy constructor. */
{