Sha256: 4bade100fad7af7d9e9fa85a43674dab33412ca0fbaf661ed768382c15b14528

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 Bytes

Contents

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

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

describe("Unicode String", function() {
	describe("#to_set", function() {
		it("should return a zero-length range when representing a single codepoint", function() {
			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() {
			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

1 entries across 1 versions & 1 rubygems

Version Path
twitter_cldr_js-2.4.0 spec/js/parsers/unicode_regex/unicode_string.spec.js