fix test
This commit is contained in:
parent
36a0b317ad
commit
dc61e11813
|
@ -4270,17 +4270,23 @@ fn expect_head_discard_tail() {
|
||||||
|
|
||||||
assert_uplc(
|
assert_uplc(
|
||||||
src,
|
src,
|
||||||
|
Term::var("a")
|
||||||
|
.delayed_choose_list(
|
||||||
|
Term::Error.delayed_trace(Term::var("expect[h,..]=a")),
|
||||||
Term::equals_integer()
|
Term::equals_integer()
|
||||||
.apply(Term::var("h"))
|
.apply(Term::var("h"))
|
||||||
.apply(Term::var("h"))
|
.apply(Term::var("h"))
|
||||||
.lambda("h")
|
.lambda("h")
|
||||||
.apply(Term::un_i_data().apply(Term::head_list().apply(Term::var("a"))))
|
.apply(Term::un_i_data().apply(Term::head_list().apply(Term::var("a")))),
|
||||||
|
)
|
||||||
.lambda("a")
|
.lambda("a")
|
||||||
.apply(Term::list_values(vec![
|
.apply(Term::list_values(vec![
|
||||||
Constant::Data(Data::integer(1.into())),
|
Constant::Data(Data::integer(1.into())),
|
||||||
Constant::Data(Data::integer(2.into())),
|
Constant::Data(Data::integer(2.into())),
|
||||||
Constant::Data(Data::integer(3.into())),
|
Constant::Data(Data::integer(3.into())),
|
||||||
])),
|
]))
|
||||||
|
.lambda("expect[h,..]=a")
|
||||||
|
.apply(Term::string("expect [h, ..] = a")),
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue