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:
@@ -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()
|
||||
|
||||
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user