Duncan Beevers
Posts: 68
Nickname: dbeevers
Registered: May, 2008
Duncan Beevers is a hack and jester building shiny baubles from bytes and tears.
|
|
|
|
Token prefix trie store
|
Posted: Aug 15, 2008 10:54 AM
|
|
This post originated from an RSS feed registered with Ruby Buzz
by Duncan Beevers.
|
Original Post: Token prefix trie store
Feed Title: dweebd
Feed URL: http://www.dweebd.com/feed/
Feed Description: Ruby ejecta from the leading edge
|
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Duncan Beevers
Latest Posts From dweebd
|
|
Advertisement
|
class TrieStoreTest < Test::Unit::TestCase
def setup
@t = TrieStore.new
end
def test_should_insert
@t.insert('hello', 1)
end
def test_should_search
@t.insert('hello', :value1)
assert_equal [ :value1 ], @t.search('hello')
end
def test_should_search_with_prefix
@t.insert('hello', :value1)
assert_equal [...]
Read: Token prefix trie store
|
|