[ruby-cvs:73055] duerst:r65955 (trunk): add tests using Unicode test data for grapheme clusters

duerst at ruby-lang.org duerst at ruby-lang.org
Sat Nov 24 21:10:25 JST 2018


duerst	2018-11-24 21:10:25 +0900 (Sat, 24 Nov 2018)

  New Revision: 65955

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65955

  Log:
    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

  Added files:
    trunk/test/ruby/enc/test_grapheme_breaks.rb


More information about the ruby-cvs mailing list