Sha256: 61ca1ced27cd47a9241068b076a3d6a7a57e86044d72d711377d097da187cd01
Contents?: true
Size: 866 Bytes
Versions: 22
Compression:
Stored size: 866 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::Collation describe ImplicitCollationElements do it 'computes correct implicit value for non-CJK code points' do ImplicitCollationElements.for_code_point(0xD801).should == [[0xE305C758, 0x5, 0x5]] ImplicitCollationElements.for_code_point(0xC0001).should == [[0xE44E70AC, 0x5, 0x5]] ImplicitCollationElements.for_code_point(0xFFF02).should == [[0xE4C25F74, 0x5, 0x5]] end it 'computes correct implicit values for CJK code points' do ImplicitCollationElements.for_code_point(0x4E00).should == [[0xE00406, 0x5, 0x5]] ImplicitCollationElements.for_code_point(0x3400).should == [[0xE0ABCE, 0x5, 0x5]] ImplicitCollationElements.for_code_point(0x20000).should == [[0xE1302590, 0x5, 0x5]] end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr-1.6.0 | spec/collation/implicit_collation_elements_spec.rb |
twitter_cldr-1.5.0 | spec/collation/implicit_collation_elements_spec.rb |