use super::csg_summary::csg_summary_message;
#[test]
fn all_open_topology_accepts_are_not_described_as_dropped() {
let msg = csg_summary_message(0, 3);
assert!(
!msg.contains("cut dropped"),
"an accepted open-topology result must not be described as a dropped cut: {msg:?}"
);
assert!(
msg.contains("open-topology"),
"message should name what was actually recorded: {msg:?}"
);
}
#[test]
fn all_drops_keep_the_original_wording() {
let msg = csg_summary_message(4, 0);
assert_eq!(
msg,
"CSG failures during geometry extraction (cut dropped, host kept uncut)"
);
}
#[test]
fn mixed_records_name_both_kinds() {
let msg = csg_summary_message(2, 1);
assert!(msg.contains("dropped"), "mixed message drops half: {msg:?}");
assert!(
msg.contains("open-topology"),
"mixed message should still name the accepted half: {msg:?}"
);
}