Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unicode-grant] Commit New version of GraphemeBreakTest.t
New script tests the contents of each grapheme individually from the GraphemeClusterBreak.txt file from the Unicode 9.0 test suite. Previously we only checked the total number of ‘.chars’ for the string as a whole. Here we actually check the string length as well as that each grapheme contains the exact correct codepoints in the correct order and correct graphemes. This new test uses a grammar to parse the file and generally is much more robust than the previous script. Running the parse class generates an array of arrays where the index of the outer array indicates which [[10084, 776], [9757]] would indicate the 0th grapheme is made up of cp's 10084 and 776 and the 1st grapheme is made up cp 9757.
- Loading branch information