replace hardcoded value with constant in TestContext

This commit is contained in:
ad hoc 2022-03-31 18:42:10 +02:00
parent 950a740bd4
commit fdaf45aab2
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -564,6 +564,8 @@ mod test {
use rand::rngs::StdRng; use rand::rngs::StdRng;
use rand::{Rng, SeedableRng}; use rand::{Rng, SeedableRng};
use crate::index::{DEFAULT_MIN_WORD_LEN_ONE_TYPO, DEFAULT_MIN_WORD_LEN_TWO_TYPOS};
use super::*; use super::*;
#[derive(Debug)] #[derive(Debug)]
@ -602,7 +604,7 @@ mod test {
} }
fn min_word_len_for_typo(&self) -> heed::Result<(u8, u8)> { fn min_word_len_for_typo(&self) -> heed::Result<(u8, u8)> {
Ok((5, 9)) Ok((DEFAULT_MIN_WORD_LEN_ONE_TYPO, DEFAULT_MIN_WORD_LEN_TWO_TYPOS))
} }
} }