Sha256: bb4f95c4912986f1207781e7f30bbf39cab524a62b6c029ee5699710efa04006
Contents?: true
Size: 571 Bytes
Versions: 20
Compression:
Stored size: 571 Bytes
Contents
# encoding: UTF-8 require 'spec_helper' module ICU module Normalization # http://bugs.icu-project.org/trac/browser/icu/trunk/source/test/cintltst/cnormtst.c describe "Normalization" do it "should normalize a string - decomposed" do ICU::Normalization.normalize("Å", :nfd).unpack("U*").should == [65, 778] end it "should normalize a string - composed" do ICU::Normalization.normalize("Å", :nfc).unpack("U*").should == [197] end # TODO: add more normalization tests end end # Normalization end # ICU
Version data entries
20 entries across 20 versions & 1 rubygems