textsearch 0.2.0

Full text search for rust
Documentation
/*
TODO:
  * Check tokens hashmap to ensure tokenizer is functioning
*/

extern crate textsearch;
use textsearch::index::Index;

static DOC: &'static str = "Some text to test with";

#[test]
fn create_index() {
	let index = Index::new(DOC);

	//should have 5 tokens, one for each word in DOC
	assert_eq!(index.tokens.len(), 5);

	//Document for index should have 32byte UUID
	assert_eq!(index.id.len(), 32);

}