thing-core: layout tests build
This commit is contained in:
parent
1671aae3a0
commit
36b4d20cdf
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue