From 36b4d20cdf9b64e2b76cfce6c5598c782591fa11 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 05:02:17 +0100 Subject: [PATCH] thing-core: layout tests build --- crates/thing-core/tests/layout.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/thing-core/tests/layout.rs b/crates/thing-core/tests/layout.rs index ac0460f..57302ec 100644 --- a/crates/thing-core/tests/layout.rs +++ b/crates/thing-core/tests/layout.rs @@ -18,7 +18,7 @@ use thing_testkit::mem_state::MemState; use thing_testkit::measure::FixedMeasure; use thing_testkit::state::{self, Swarm}; -fn goldens() -> PathBuf { +fn golden_dir() -> PathBuf { PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/goldens") } @@ -96,7 +96,7 @@ fn stem(fixture: Fixture) -> String { fn check(fixture: Fixture, suffix: &str, frame: &LayoutFrame) -> String { let text = fixture_text(fixture, frame); - golden::check(&goldens(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes()); + golden::check(&golden_dir(), &format!("layout-{}{suffix}.txt", stem(fixture)), text.as_bytes()); text }