Sha256: 6752a96dfec0ea5f79251cb4c32609f7b216e180189ae48ed4ba5cb5ed04a01d
Contents?: true
Size: 829 Bytes
Versions: 17
Compression:
Stored size: 829 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 require 'spec_helper' include TwitterCldr::Collation describe 'trie dumps', :slow => true do let(:default_trie) { TrieBuilder.load_default_trie } let(:error_message) { 'expected trie dump to be up-to-date.' } it 'has a valid default Fractional Collation Elements trie dump' do expect(TrieLoader.load_default_trie.to_hash).to(eq(default_trie.to_hash), error_message) end TwitterCldr.supported_locales.each do |locale| it "has a valid tailored trie dump for #{locale} locale" do loaded_trie = TrieLoader.load_tailored_trie(locale, Trie.new) fresh_trie = TrieBuilder.load_tailored_trie(locale, default_trie) expect(loaded_trie.to_hash).to(eq(fresh_trie.to_hash), error_message) end end end
Version data entries
17 entries across 17 versions & 2 rubygems