Sha256: 6048afb7d591b11fec3d5ee3402624b4e7d349bb33013df51c130e25147fbab6
Contents?: true
Size: 923 Bytes
Versions: 4
Compression:
Stored size: 923 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("Unicode String", function() { beforeEach(function() { TwitterCldr.set_data(data); }); describe("#to_set", function() { it("should return a zero-length range when representing a single codepoint", function() { var str = new TwitterCldr.UnicodeString([97]); expect (str.to_set().to_array()).toEqualRangeArray([new TwitterCldr.Range(97,97)]); }); it("should return a range containing the codepoint array as both the first and last elements", function() { var str = new TwitterCldr.UnicodeString([97,98,99]); expect (str.to_set().to_array()).toEqualRangeArray([new TwitterCldr.Range([97,98,99], [97,98,99])]); }); }); });
Version data entries
4 entries across 4 versions & 1 rubygems