Cleanup/fmt
This commit is contained in:
parent
0cb68feee3
commit
c656ea5311
1 changed files with 3 additions and 21 deletions
|
@ -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"]);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue