Sha256: 511484231b2433b24e473b98cffd956a77e63225da08d5e36b050ba1544ba645
Contents?: true
Size: 661 Bytes
Versions: 6
Compression:
Stored size: 661 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::Parsers describe UnicodeRegexParser::UnicodeString do describe "#to_set" do it "should return a zero-length range when representing a single codepoint" do str = UnicodeRegexParser::UnicodeString.new([97]) expect(str.to_set.to_a).to eq([97..97]) end it "should return a range containing the codepoint array as both the first and last elements" do str = UnicodeRegexParser::UnicodeString.new([97, 98, 99]) expect(str.to_set.to_a).to eq([[97, 98, 99]..[97, 98, 99]]) end end end
Version data entries
6 entries across 6 versions & 1 rubygems