Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InSC-InPC-gc invariant test #536

Merged
merged 9 commits into from
Nov 3, 2023

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Aug 29, 2023

See UTC-177-C41 and UTC-177-C42. Fix #526.

[177-A95] Action Item for Robin Leroy, PAG: For U+1171E AHOM CONSONANT SIGN MEDIAL RA, change the gc property value from Mn to Mc and Bidi_Class value from NSM to L for Unicode version 16.0. (Ref. Section 17 of L2/23-238)

Fails as expected before the property changes:

\p{InPC=/(Left|Right)/} ⊆ [\p{gc=Mc}\p{gc=Lo}]

**** START Test Failure 1 ****
## Expected empty, got: 3 [\u0D41\u0D42\U0001171E]

## In \p{InPC=/(Left|Right)/}

## But Not In [\p{gc=Mc}\p{gc=Lo}]

0D41..0D42	#	[2]	(ു..ൂ)	MALAYALAM VOWEL SIGN U..MALAYALAM VOWEL SIGN UU
1171E	#		(𑜞)	AHOM CONSONANT SIGN MEDIAL RA
**** END Test Failure 1 ****

[\P{InPC=NA}&\p{gc=Mc}] ⊆ \p{InPC=/(Left|Right)/}

[\P{InPC=NA}&\P{InPC=/(Left|Right)/}] ⊆ [\p{gc=Mn}\p{gc=Lo}]

\p{gc=Mn} ⊆ \P{InPC=/(Left|Right)/}

**** START Test Failure 2 ****
## Expected empty, got: 3 [\u0D41\u0D42\U0001171E]

## In \p{gc=Mn}

## But Not In \P{InPC=/(Left|Right)/}

0D41..0D42	#	[2]	(ു..ൂ)	MALAYALAM VOWEL SIGN U..MALAYALAM VOWEL SIGN UU
1171E	#		(𑜞)	AHOM CONSONANT SIGN MEDIAL RA
**** END Test Failure 2 ****

[\p{gc=Lo}&\P{InPC=NA}&\P{InPC=/(Left|Right)/}] ⊆ [\p{InSC=Consonant_Preceding_Repha}\p{InSC=Consonant_Prefixed}]

@eggrobin eggrobin marked this pull request as ready for review November 2, 2023 22:30
markusicu
markusicu previously approved these changes Nov 2, 2023
@eggrobin eggrobin merged commit 974e992 into unicode-org:main Nov 3, 2023
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add invariant test for the relation between GC and InPC
2 participants