added more settings to Difficulty (unused)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user