Sha256: 0301105e04b6a02001d35a36877928a963245ef744d38a6562a7252fa80229d4
Contents?: true
Size: 357 Bytes
Versions: 1
Compression:
Stored size: 357 Bytes
Contents
# encoding: UTF-8 require 'rspec' require 'trie-file' require 'pry-nav' RSpec.configure do |config| config.mock_with :rr end def check_trie(root, key, val) node = root key.each_char do |char| expect(node.children.size).to eq(1) expect(node.children).to include(char) node = node.children[char] end expect(node.value).to eq(val) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trie-file-1.0.0 | spec/spec_helper.rb |