Sha256: 122029886b2a828d0aa7095e29e6c5f2fadfe9b06977aed150b54378baa5f32b
Contents?: true
Size: 821 Bytes
Versions: 7
Compression:
Stored size: 821 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 TrieLoader.load_default_trie.to_hash.should(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) loaded_trie.to_hash.should(eq(fresh_trie.to_hash), error_message) end end end
Version data entries
7 entries across 7 versions & 1 rubygems