Sha256: b3f74d4fa919b05697bfd636a723e84d1b97df7765b273d648c664f6acbd6437
Contents?: true
Size: 865 Bytes
Versions: 1
Compression:
Stored size: 865 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("Character Set", function() { describe("#to_set", function() { it("should return a set containing codepoints for the given general property", function() { char_set = new TwitterCldr.CharacterSet ("Zs"); expect(char_set.to_set().to_array(true)).toEqualRangeArray([32, 160, 5760, 6158, new TwitterCldr.Range(8192,8202), 8239, 8287, 12288]); }); it("should return a set containing codepoints for the given named property", function() { char_set = new TwitterCldr.CharacterSet ("Sentence_Break=Sp"); expect(char_set.to_set().to_array(true)).toEqualRangeArray([9, new TwitterCldr.Range(11,12), 32, 160, 5760, new TwitterCldr.Range(8192,8202), 8239, 8287, 12288]); }); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twitter_cldr_js-2.4.0 | spec/js/parsers/unicode_regex/character_set.spec.js |