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

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/twitter_cldr-3.2.1/spec/collation/trie_dumps_spec.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/twitter_cldr-3.2.1/spec/collation/trie_dumps_spec.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/twitter_cldr-3.1.2/spec/collation/trie_dumps_spec.rb
twitter_cldr-3.2.1 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.2.0 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.1.2 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.1.1 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.1.0 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.10 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.9 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.8 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.7 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.6 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.5 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.4 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.3 spec/collation/trie_dumps_spec.rb
twitter_cldr-3.0.2 spec/collation/trie_dumps_spec.rb