From 85e0be13575d1342645867bc1a788e13e196594f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 13 Nov 2022 17:28:09 -0700 Subject: [PATCH] [vector/array] Add simple test for sorted size --- src/test-array.cc | 2 ++ src/test-vector.cc | 1 + 2 files changed, 3 insertions(+) diff --git a/src/test-array.cc b/src/test-array.cc index 6c888138e..0acf73b61 100644 --- a/src/test-array.cc +++ b/src/test-array.cc @@ -70,6 +70,8 @@ test_reverse_invalid () int main (int argc, char **argv) { + assert (sizeof (hb_array_t) == sizeof (hb_sorted_array_t)); + test_reverse (); test_reverse_range (); test_reverse_invalid (); diff --git a/src/test-vector.cc b/src/test-vector.cc index 37bec309d..0a0ce40a2 100644 --- a/src/test-vector.cc +++ b/src/test-vector.cc @@ -32,6 +32,7 @@ int main (int argc, char **argv) { + assert (sizeof (hb_vector_t) == sizeof (hb_sorted_vector_t)); /* Test copy constructor. */ {