Sha256: 132fd022feef52ed137d5fa0279f47e3e3a6f6dbe0ce9a1a975c2626bd3b0fa5

Contents?: true

Size: 534 Bytes

Versions: 17

Compression:

Stored size: 534 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::CharacterRange do
  describe "#to_set" do
    it "should return a range between the initial and the final values" do
      range = UnicodeRegexParser::CharacterRange.new(
        UnicodeRegexParser::UnicodeString.new([97]),
        UnicodeRegexParser::UnicodeString.new([98])
      )

      expect(range.to_set.to_a(true)).to eq([97..98])
    end
  end
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/twitter_cldr-3.2.1/spec/parsers/unicode_regex/character_range_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/twitter_cldr-3.2.1/spec/parsers/unicode_regex/character_range_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/twitter_cldr-3.1.2/spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.2.1 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.2.0 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.1.2 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.1.1 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.1.0 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.10 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.9 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.8 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.7 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.6 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.5 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.4 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.3 spec/parsers/unicode_regex/character_range_spec.rb
twitter_cldr-3.0.2 spec/parsers/unicode_regex/character_range_spec.rb