added more settings to Difficulty (unused)

This commit is contained in:
MaxOhn
2024-03-04 12:21:16 +01:00
parent f1f9513bf3
commit c5fdf4e610
13 changed files with 242 additions and 101 deletions
+3 -3
View File
@@ -261,8 +261,7 @@ mod osu_objects {
#[cfg(test)]
mod tests {
use crate::{any::difficulty::converted::ConvertedDifficulty, osu::Osu, Beatmap};
use crate::{osu::Osu, Beatmap};
use super::*;
@@ -310,8 +309,9 @@ mod tests {
assert_eq!(next_gradual, next_gradual_3rd);
}
let expected = ConvertedDifficulty::new()
let expected = Difficulty::new()
.passed_objects(i as u32)
.with_mode()
.calculate(&converted);
assert_eq!(next_gradual, expected);
+2 -2
View File
@@ -823,7 +823,7 @@ mod test {
use proptest::prelude::*;
use crate::{any::difficulty::converted::ConvertedDifficulty, Beatmap};
use crate::Beatmap;
use super::*;
@@ -838,7 +838,7 @@ mod test {
.unwrap()
.unchecked_into_converted::<Osu>();
let attrs = ConvertedDifficulty::new().calculate(&converted);
let attrs = Difficulty::new().with_mode().calculate(&converted);
assert_eq!(
(attrs.n_circles, attrs.n_sliders, attrs.n_spinners),