remove ignored unit tests

This commit is contained in:
MaxOhn
2021-02-23 19:45:49 +01:00
parent 584e1c5714
commit 8a3bb912b0
6 changed files with 0 additions and 167 deletions
-27
View File
@@ -439,30 +439,3 @@ const OSU_AR_MIN: f32 = 1800.0;
fn difficulty_range_ar(ar: f32) -> f32 {
crate::difficulty_range(ar, OSU_AR_MAX, OSU_AR_AVG, OSU_AR_MIN)
}
#[cfg(test)]
mod tests {
use super::super::super::OsuPP;
use crate::Beatmap;
use std::fs::File;
#[test]
#[ignore]
fn all_included_single() {
// TOCHECK: 114708, 1208872, 1322261
let file = match File::open("./maps/1295309.osu") {
Ok(file) => file,
Err(why) => panic!("Could not open file: {}", why),
};
let map = match Beatmap::parse(file) {
Ok(map) => map,
Err(why) => panic!("Error while parsing map: {}", why),
};
let result = OsuPP::new(&map).mods(0).calculate();
println!("Stars: {}", result.stars());
println!("PP: {}", result.pp());
}
}
-32
View File
@@ -270,35 +270,3 @@ pub fn strains(map: &Beatmap, mods: impl Mods) -> Strains {
strains,
}
}
#[cfg(test)]
mod tests {
use super::super::super::OsuPP;
use crate::Beatmap;
use std::fs::File;
#[test]
#[ignore]
fn no_leniency_single() {
let file = match File::open("./maps/2573164.osu") {
Ok(file) => file,
Err(why) => panic!("Could not open file: {}", why),
};
let map = match Beatmap::parse(file) {
Ok(map) => map,
Err(why) => panic!("Error while parsing map: {}", why),
};
let result = OsuPP::new(&map)
.mods(0)
// .n300(1206)
// .n100(15)
// .n50(0)
// .combo(1643)
.calculate();
println!("Stars: {}", result.stars());
println!("PP: {}", result.pp());
}
}
@@ -282,29 +282,3 @@ pub fn strains(map: &Beatmap, mods: impl Mods) -> Strains {
strains,
}
}
#[cfg(test)]
mod tests {
use super::super::super::OsuPP;
use crate::Beatmap;
use std::fs::File;
#[test]
#[ignore]
fn no_sliders_single() {
let file = match File::open("./maps/1851299.osu") {
Ok(file) => file,
Err(why) => panic!("Could not open file: {}", why),
};
let map = match Beatmap::parse(file) {
Ok(map) => map,
Err(why) => panic!("Error while parsing map: {}", why),
};
let result = OsuPP::new(&map).mods(2).calculate();
println!("Stars: {}", result.stars());
println!("PP: {}", result.pp());
}
}