# -*- coding: utf-8 -*-
# Copyright (C) 2014-2025 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
#
# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# The GNU C Library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with the GNU C Library; if not, see
# <https://www.gnu.org/licenses/>.
'''
This file contains a list of test cases used by
the ctype_compatibility.py script.
'''
TEST_CASES = [
[[0x0E2F, 0x0E46], [('alpha', True), ('punct', False)],
'''Theppitak Karoonboonyanan <thep@links.nectec.or.th> says
<U0E2F>, <U0E46> should belong to punct. DerivedCoreProperties.txt
says it is alpha. We trust DerivedCoreProperties.txt.'''
],
[[0x0E31, (0x0E34, 0x0E3A)], [('alpha', True)],
'''gen-unicode-ctype.c: Theppitak Karoonboonyanan
<thep@links.nectec.or.th> says <U0E31>, <U0E34>..<U0E3A>
are alpha. DerivedCoreProperties.txt agrees.'''
],
[[(0x0E47, 0x0E4C), 0x0E4E], [('alpha', False)],
'''gen-unicode-ctype.c: Theppitak Karoonboonyanan
<thep@links.nectec.or.th> says <U0E47>..<U0E4E> are
is_alpha. DerivedCoreProperties does says *only* <U0E4D>
in that range is alphabetic, the others are *not*. We
trust DerivedCoreProperties.txt.'''
],
[[0x0E4D], [('alpha', True)],
'''gen-unicode-ctype.c: Theppitak Karoonboonyanan
<thep@links.nectec.or.th> says <U0E47>..<U0E4E> are
is_alpha. DerivedCoreProperties does says *only* <U0E4D>
in that range is alphabetic, the others are *not*. We
trust DerivedCoreProperties.txt.
'''
],
[[0x0345], [('alpha', True), ('lower', True)],
'''COMBINING GREEK YPOGEGRAMMENI