This commit is contained in:
microproofs
2024-05-06 11:35:05 -04:00
parent 14903f7352
commit 2f61f59b60
4 changed files with 47 additions and 0 deletions

View File

@@ -1128,10 +1128,16 @@ impl Assertion<UntypedExpr> {
.to_string()
};
// head did not map to a constant
if self.head.is_err() {
return red("program failed");
}
// any value in tail did not map to a constant
if self.tail.is_err() {
return red("program failed");
}
fn fmt_side(side: &UntypedExpr, stream: Stream) -> String {
let __ = "".if_supports_color(stream, |s| s.red());