Cleanup/fmt

This commit is contained in:
Vivianne 2023-06-12 03:10:24 -07:00
parent 0cb68feee3
commit c656ea5311

View file

@ -4,8 +4,7 @@ use std::{collections::BTreeMap, fs::File, io::BufReader, path::Path};
use itertools::Itertools;
use nom::branch::alt;
use nom::bytes::complete::{tag, take_until};
use nom::character::complete::alphanumeric1;
use nom::character::complete::space0;
use nom::character::complete::{alphanumeric1, space0};
use nom::multi::many1;
use nom::sequence::delimited;
use nom::IResult;
@ -126,31 +125,14 @@ mod tests {
let res: Vec<&String> = suggestions
.get_suggestions([
"planet",
"of",
"the",
"breaks",
"1",
"vec1",
"cymbals",
"open",
"hh",
"oh",
"001",
"planet", "of", "the", "breaks", "1", "vec1", "cymbals", "open", "hh", "oh", "001",
])
.collect();
assert_eq!(res, vec!["break", "cymbal", "hihat"]);
let res: Vec<&String> = suggestions
.get_suggestions([
"vec1",
"long",
"basses",
"warm",
"synthesizer"
])
.get_suggestions(["vec1", "long", "basses", "warm", "synthesizer"])
.collect();
assert_eq!(res, vec!["long", "bass", "warm", "synth"]);
}
}