Skip to content

Commit

Permalink
fix path in test
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed Jan 4, 2021
1 parent 4a6fad3 commit 6817edd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion nlprule/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ serde_json = { version = "1", optional = true }
[dev-dependencies]
quickcheck = "0.9"
quickcheck_macros = "0.9"
flate2 = "1"

[features]
compile = ["serde-xml-rs", "xml-rs", "roxmltree", "serde_json"]
Expand Down
5 changes: 2 additions & 3 deletions nlprule/src/tokenizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,13 @@ mod tests {
use lazy_static::lazy_static;
use quickcheck_macros::quickcheck;
use std::fs::File;
use std::io::BufReader;

#[quickcheck]
fn can_tokenize_anything(text: String) -> bool {
lazy_static! {
static ref TOKENIZER: Tokenizer = {
let reader = flate2::read::GzDecoder::new(
File::open("../storage/en/tokenizer.bin.gz").unwrap(),
);
let reader = BufReader::new(File::open("../storage/en_tokenizer.bin").unwrap());
bincode::deserialize_from(reader).unwrap()
};
}
Expand Down

0 comments on commit 6817edd

Please sign in to comment.