|
|
@ -703,10 +703,11 @@ impl<S: StringStore + Default> Default for Encoder<S> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mod test { |
|
|
|
mod test { |
|
|
|
|
|
|
|
use model::*; |
|
|
|
|
|
|
|
use store::numeric_encoder::*; |
|
|
|
|
|
|
|
|
|
|
|
#[test] |
|
|
|
#[test] |
|
|
|
fn test_encoding() { |
|
|
|
fn test_encoding() { |
|
|
|
use model::*; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let encoder: Encoder<MemoryStringStore> = Encoder::default(); |
|
|
|
let encoder: Encoder<MemoryStringStore> = Encoder::default(); |
|
|
|
let terms: Vec<Term> = vec![ |
|
|
|
let terms: Vec<Term> = vec![ |
|
|
|
NamedNode::from_str("http://foo.com").unwrap().into(), |
|
|
|
NamedNode::from_str("http://foo.com").unwrap().into(), |
|
|
|