Rename testcases to test_cases

This commit is contained in:
Dirkjan Ochtman 2021-02-04 10:17:55 +01:00
parent 55cc7c54a3
commit b85fc6adc2
4 changed files with 5 additions and 5 deletions

View File

@ -10,8 +10,8 @@ repository = "https://github.com/InstantDomainSearch/instant-segment"
documentation = "https://docs.rs/instant-segment" documentation = "https://docs.rs/instant-segment"
[features] [features]
__test_data = ["testcases"] __test_data = ["test-cases"]
testcases = [] test-cases = []
[dependencies] [dependencies]
ahash = "0.7.0" ahash = "0.7.0"

View File

@ -3,10 +3,10 @@ use std::str;
use smartstring::alias::String; use smartstring::alias::String;
#[cfg(feature = "test-cases")]
pub mod test_cases;
#[cfg(feature = "__test_data")] #[cfg(feature = "__test_data")]
pub mod test_data; pub mod test_data;
#[cfg(feature = "testcases")]
pub mod testcases;
/// Central data structure used to calculate word probabilities /// Central data structure used to calculate word probabilities
pub struct Segmenter { pub struct Segmenter {

View File

@ -9,7 +9,7 @@ use super::Segmenter;
#[test] #[test]
fn test_data() { fn test_data() {
crate::testcases::run(segmenter()); crate::test_cases::run(segmenter());
} }
pub fn segmenter() -> Segmenter { pub fn segmenter() -> Segmenter {