1/*
2 SPDX-FileCopyrightText: 2021 Volker Krause <vkrause@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "spatial_index_property_p.h"
8
9// unit tests for the spatial index property table type
10static_assert(sizeof(SpatialIndexProperty) == 6);
11
12// timezone only
13static_assert(SpatialIndexProperty(Tz::Pacific_Auckland).m_tz == Tz::Pacific_Auckland);
14static_assert(SpatialIndexProperty(Tz::Pacific_Auckland).m_subdiv == 0);
15
16// country only
17static_assert(SpatialIndexProperty(Tz::Europe_Zurich, "CH").m_subdiv > 0);
18static_assert((SpatialIndexProperty(Tz::Europe_Zurich, "CH").m_subdiv & 0xffff) == 0);
19
20// subdivision
21static_assert(SpatialIndexProperty(Tz::Europe_Paris, "FR-IDF").m_subdiv > 0);
22static_assert((SpatialIndexProperty(Tz::Europe_Paris, "FR-IDF").m_subdiv & 0xffff) > 0);
23

source code of ki18n/src/localedata/spatial_index_property.cpp