Skip to content

InSC-InPC-gc invariant test#536

Merged
eggrobin merged 9 commits intounicode-org:mainfrom
eggrobin:inpc-insc-gc-invariant
Nov 3, 2023
Merged

InSC-InPC-gc invariant test#536
eggrobin merged 9 commits intounicode-org:mainfrom
eggrobin:inpc-insc-gc-invariant

Conversation

@eggrobin
Copy link
Copy Markdown
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
@eggrobin eggrobin requested a review from markusicu 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
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