mirror of
https://github.com/horizon-rust/horizon.git
synced 2026-11-08 17:19:10 -10:00
Skip the creeper fall test without the vanilla data
CI's verify has no extracted data, so with_test_world doesn't run the closure there; the other mob tests ignore its result the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
097b9781ad
commit
4d31db99b5
1 file changed
+2
-2
@@ -761,7 +761,8 @@ mod tests {
|
||||
/// where the shared formula would have given 3.
|
||||
#[test]
|
||||
fn a_creeper_falls_by_its_own_health_while_it_has_a_target() {
|
||||
let ran = crate::mobs::world::with_test_world(&[], |_, types| {
|
||||
// Skipped without the extracted vanilla data (CI's verify has none).
|
||||
crate::mobs::world::with_test_world(&[], |_, types| {
|
||||
let kind = std::sync::Arc::new(types.types["minecraft:creeper"].clone());
|
||||
let mut m = Mob::new(1, kind, Vec3::new(0.5, 64.0, 0.5), 0.0);
|
||||
assert_eq!(m.max_fall_distance(), 3, "no target");
|
||||
@@ -771,6 +772,5 @@ mod tests {
|
||||
m.health = 4.0;
|
||||
assert_eq!(m.max_fall_distance(), 6, "hurt, has a target");
|
||||
});
|
||||
assert!(ran, "the extracted vanilla data is missing");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user