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 itertools::Itertools;
|
||||||
use nom::branch::alt;
|
use nom::branch::alt;
|
||||||
use nom::bytes::complete::{tag, take_until};
|
use nom::bytes::complete::{tag, take_until};
|
||||||
use nom::character::complete::alphanumeric1;
|
use nom::character::complete::{alphanumeric1, space0};
|
||||||
use nom::character::complete::space0;
|
|
||||||
use nom::multi::many1;
|
use nom::multi::many1;
|
||||||
use nom::sequence::delimited;
|
use nom::sequence::delimited;
|
||||||
use nom::IResult;
|
use nom::IResult;
|
||||||
|
@ -126,31 +125,14 @@ mod tests {
|
||||||
|
|
||||||
let res: Vec<&String> = suggestions
|
let res: Vec<&String> = suggestions
|
||||||
.get_suggestions([
|
.get_suggestions([
|
||||||
"planet",
|
"planet", "of", "the", "breaks", "1", "vec1", "cymbals", "open", "hh", "oh", "001",
|
||||||
"of",
|
|
||||||
"the",
|
|
||||||
"breaks",
|
|
||||||
"1",
|
|
||||||
"vec1",
|
|
||||||
"cymbals",
|
|
||||||
"open",
|
|
||||||
"hh",
|
|
||||||
"oh",
|
|
||||||
"001",
|
|
||||||
])
|
])
|
||||||
.collect();
|
.collect();
|
||||||
assert_eq!(res, vec!["break", "cymbal", "hihat"]);
|
assert_eq!(res, vec!["break", "cymbal", "hihat"]);
|
||||||
|
|
||||||
let res: Vec<&String> = suggestions
|
let res: Vec<&String> = suggestions
|
||||||
.get_suggestions([
|
.get_suggestions(["vec1", "long", "basses", "warm", "synthesizer"])
|
||||||
"vec1",
|
|
||||||
"long",
|
|
||||||
"basses",
|
|
||||||
"warm",
|
|
||||||
"synthesizer"
|
|
||||||
])
|
|
||||||
.collect();
|
.collect();
|
||||||
assert_eq!(res, vec!["long", "bass", "warm", "synth"]);
|
assert_eq!(res, vec!["long", "bass", "warm", "synth"]);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue