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"
|
||||
|
||||
[features]
|
||||
__test_data = ["testcases"]
|
||||
testcases = []
|
||||
__test_data = ["test-cases"]
|
||||
test-cases = []
|
||||
|
||||
[dependencies]
|
||||
ahash = "0.7.0"
|
||||
|
|
|
@ -3,10 +3,10 @@ use std::str;
|
|||
|
||||
use smartstring::alias::String;
|
||||
|
||||
#[cfg(feature = "test-cases")]
|
||||
pub mod test_cases;
|
||||
#[cfg(feature = "__test_data")]
|
||||
pub mod test_data;
|
||||
#[cfg(feature = "testcases")]
|
||||
pub mod testcases;
|
||||
|
||||
/// Central data structure used to calculate word probabilities
|
||||
pub struct Segmenter {
|
||||
|
|
|
@ -9,7 +9,7 @@ use super::Segmenter;
|
|||
|
||||
#[test]
|
||||
fn test_data() {
|
||||
crate::testcases::run(segmenter());
|
||||
crate::test_cases::run(segmenter());
|
||||
}
|
||||
|
||||
pub fn segmenter() -> Segmenter {
|
||||
|
|
Loading…
Reference in New Issue