parse: fix missing mode & leniency + improve error msg

This commit is contained in:
MaxOhn
2021-01-20 10:21:28 +01:00
parent 2336793cc6
commit b3f73b7b6c
3 changed files with 31 additions and 26 deletions
+2 -2
View File
@@ -278,7 +278,7 @@ mod tests {
#[test]
#[ignore]
fn no_leniency_single() {
let file = match File::open("./maps/1851299.osu") {
let file = match File::open("./maps/295.osu") {
Ok(file) => file,
Err(why) => panic!("Could not open file: {}", why),
};
@@ -288,7 +288,7 @@ mod tests {
Err(why) => panic!("Error while parsing map: {}", why),
};
let result = OsuPP::new(&map).mods(256).calculate(stars);
let result = OsuPP::new(&map).mods(0).calculate(stars);
println!("Stars: {}", result.stars());
println!("PP: {}", result.pp());