Tests main added since: prepared resources under the generated version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ludovic Marie
2026-10-16 01:11:36 +02:00
parent 605b9f8511
commit ef8b045d79
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -4440,7 +4440,8 @@ mod sprite_upload_tests {
#[test]
fn real_rail_mips_do_not_change_with_larger_array_layers() {
let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../../.local/horizon-client/26.3");
.join("../../.local/horizon-client")
.join(horizon_core::VANILLA_VERSION);
if !root
.join("assets/minecraft/textures/block/rail.png")
.exists()
+2 -1
View File
@@ -2014,7 +2014,8 @@ pub(crate) mod tests {
/// A menu over the game's data (`.local/horizon-client`); skipped without it.
pub(crate) fn with_menu(kind: Kind, test: impl FnOnce(&Env, &mut Menu)) {
let root = std::path::Path::new(env!("CARGO_MANIFEST_DIR"))
.join("../../.local/horizon-client/26.3");
.join("../../.local/horizon-client")
.join(horizon_core::VANILLA_VERSION);
if !root.join("items.json").exists() {
return;
}
+1 -1
View File
@@ -1,5 +1,5 @@
//! Behaviour tests over an in-memory level. They need the prepared client
//! resources (`HORIZON_RESOURCES`, or `.local/horizon-client/26.3` at the
//! resources (`HORIZON_RESOURCES`, or `.local/horizon-client/<version>` at the
//! repository root) and are skipped when those are absent.
use super::*;
use crate::chunk::BlockState;