Sha256: 7a0bd1605a554e3339cf4a5d138cda82163077d09c5fb9d52757241b8f17423e
Contents?: true
Size: 611 Bytes
Versions: 4
Compression:
Stored size: 611 Bytes
Contents
require 'spec_helper' describe Rambling::Trie do describe 'when a filepath is provided' do let(:filepath) { File.join(::SPEC_ROOT, 'assets', 'test_words.txt') } let(:words) { File.readlines(filepath).map &:chomp } subject { Rambling::Trie.create filepath } it 'contains all the words from the file' do words.each { |word| expect(subject).to include(word) } end describe 'and the trie is compressed' do it 'still contains all the words from the file' do subject.compress! words.each { |word| expect(subject).to include(word) } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems