This commit is contained in:
Simon Gardling 2022-04-07 09:16:18 -04:00
parent ea683628a0
commit c2eee7269a

View File

@ -9,8 +9,7 @@ fn compare_len_reverse_alpha(a: &String, b: &String) -> Ordering {
}
}
/// Generates hashmap (well really a vector of tuple of strings that are then
/// turned into a hashmap by phf)
/// Generates hashmap (well really a vector of tuple of strings that are then turned into a hashmap by phf)
#[allow(dead_code)]
pub fn compile_hashmap(data: Vec<String>) -> Vec<(String, String)> {
let start = std::time::Instant::now();
@ -76,6 +75,7 @@ fn all_possible_splits(
mod tests {
use super::*;
/// Tests to make sure hashmap generation works as expected
#[test]
fn hashmap_gen_test() {
let data = vec!["time", "text", "test"];