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 -2
View File
@@ -163,7 +163,7 @@ impl ExactSizeIterator for CatchGradualDifficulty {
#[cfg(test)]
mod tests {
use crate::{any::difficulty::converted::ConvertedDifficulty, Beatmap};
use crate::Beatmap;
use super::*;
@@ -207,8 +207,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
@@ -542,7 +542,7 @@ mod test {
use proptest::prelude::*;
use crate::{any::difficulty::converted::ConvertedDifficulty, Beatmap};
use crate::Beatmap;
use super::*;
@@ -559,7 +559,7 @@ mod test {
.unwrap()
.unchecked_into_converted::<Catch>();
let attrs = ConvertedDifficulty::new().calculate(&converted);
let attrs = Difficulty::new().with_mode().calculate(&converted);
assert_eq!(N_FRUITS, attrs.n_fruits);
assert_eq!(N_DROPLETS, attrs.n_droplets);