Rename testcases to test_cases
This commit is contained in:
parent
55cc7c54a3
commit
b85fc6adc2
|
@ -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"
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue