File indexing completed on 2024-04-21 03:54:30

0001 /*
0002     SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "spatial_index_property_p.h"
0008 
0009 // unit tests for the spatial index property table type
0010 static_assert(sizeof(SpatialIndexProperty) == 6);
0011 
0012 // timezone only
0013 static_assert(SpatialIndexProperty(Tz::Pacific_Auckland).m_tz == Tz::Pacific_Auckland);
0014 static_assert(SpatialIndexProperty(Tz::Pacific_Auckland).m_subdiv == 0);
0015 
0016 // country only
0017 static_assert(SpatialIndexProperty(Tz::Europe_Zurich, "CH").m_subdiv > 0);
0018 static_assert((SpatialIndexProperty(Tz::Europe_Zurich, "CH").m_subdiv & 0xffff) == 0);
0019 
0020 // subdivision
0021 static_assert(SpatialIndexProperty(Tz::Europe_Paris, "FR-IDF").m_subdiv > 0);
0022 static_assert((SpatialIndexProperty(Tz::Europe_Paris, "FR-IDF").m_subdiv & 0xffff) > 0);