Sha256: 8ca4104779db7b0f1d8dd4820bc68ee78631a36ec069aefed472d5fc71f7b227

Contents?: true

Size: 733 Bytes

Versions: 4

Compression:

Stored size: 733 Bytes

Contents

// Copyright 2012 Twitter, Inc
// http://www.apache.org/licenses/LICENSE-2.0

var TwitterCldr = require('../../../../lib/assets/javascripts/twitter_cldr/core.js');
var data = require('../../../../lib/assets/javascripts/twitter_cldr/en.js');

describe("Character Range", function() {
  beforeEach(function() {
    TwitterCldr.set_data(data);
  });

  describe("#to_set", function() {
    it("should return a range between the initial and the final values", function() {
      var range = new TwitterCldr.CharacterRange (
        new TwitterCldr.UnicodeString([97]),
        new TwitterCldr.UnicodeString([98])
      );

      expect (range.to_set().to_array(true)).toEqualRangeArray([new TwitterCldr.Range(97,98)]);
    });
  });
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
twitter_cldr_js-3.3.0 spec/js/parsers/unicode_regex/character_range.spec.js
twitter_cldr_js-3.2.0 spec/js/parsers/unicode_regex/character_range.spec.js
twitter_cldr_js-3.1.1 spec/js/parsers/unicode_regex/character_range.spec.js
twitter_cldr_js-3.1.0 spec/js/parsers/unicode_regex/character_range.spec.js