mod inline;
mod material;
mod rows;
mod status;
mod worker_warnings;
use super::yield_report::{girdle_and_ratio_texts_from_solved, proportions_texts_from_solved};
use crate::EditorSession;
#[test]
fn proportions_texts_from_solved_dashes_out_a_design_with_no_tiers() {
let design = EditorSession::fresh().design;
let solved = design.solve().expect("a tierless design still solves");
assert_eq!(
proportions_texts_from_solved(&design, &solved),
(
"-".to_string(),
"-".to_string(),
"-".to_string(),
"-".to_string(),
"-".to_string(),
),
"a tierless design's proportions must never show the bare preform \
block's own numbers (table 100%, total depth = preform depth) as \
if they were the stone's"
);
}
#[test]
fn girdle_and_ratio_texts_from_solved_dashes_out_a_design_with_no_tiers() {
let design = EditorSession::fresh().design;
let solved = design.solve().expect("a tierless design still solves");
assert_eq!(
girdle_and_ratio_texts_from_solved(&design, &solved),
(
"-".to_string(),
"-".to_string(),
"-".to_string(),
"-".to_string(),
)
);
}