KI18n

spatial_index_property.cpp
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);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:21:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.