diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-24 12:10:25 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-24 12:10:25 +0000 |
commit | 7599b3f6c66036d235ff850d4e30a7ae10693fe7 (patch) | |
tree | ce9a8738690ac8c8238637fcb54d37e1344c6356 /string.c | |
parent | 7850586af435f44ff97c93decc97995bbdf6bad4 (diff) | |
download | ruby-7599b3f6c66036d235ff850d4e30a7ae10693fe7.tar.gz |
add tests using Unicode test data for grapheme clusters
Add file test/ruby/enc/test_grapheme_breaks.rb to test String#each_grapheme_cluster
and \X extended grapheme cluster matcher in regular expressions against test data
provided by Unicode (ucd/auxiliary/GraphemeBreakTest.txt).
Some lines in the data file are ignored, as follows:
- Lines with a surrogate, because Ruby doesn't handle these
- The case of "\r\n", because there is a bug (#15337) in the implementation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions