Fixing other tests

This commit is contained in:
microproofs
2024-08-07 00:11:04 -04:00
committed by Kasey
parent 7ad5491ea9
commit 56ff4ec678
3 changed files with 209 additions and 329 deletions

View File

@@ -947,6 +947,8 @@ pub fn softcast_data_to_type_otherwise(
then: Term<Name>,
otherwise_delayed: Term<Name>,
) -> Term<Name> {
assert!(matches!(otherwise_delayed, Term::Var(_)));
let uplc_type = field_type.get_uplc_type();
let callback = |v| then.lambda(name).apply(v);

View File

@@ -2,7 +2,6 @@ use super::air::{Air, ExpectLevel};
use crate::{
ast::{BinOp, Curve, Span, UnOp},
builtins::{bool, byte_array, data, int, list, string, void},
gen_uplc::AssignmentProperties,
tipo::{Type, ValueConstructor, ValueConstructorVariant},
};
use indexmap::IndexSet;