resolve test: a slot-deepened tree within what a stored body can hold
This commit is contained in:
parent
b50fba8586
commit
efb4f440b9
1 changed files with 4 additions and 4 deletions
|
|
@ -384,8 +384,8 @@ fn a_tree_deeper_than_the_limit_is_refused() {
|
|||
}
|
||||
refused_for_limit(&run(&surface(deep, &[]), &MemState::new()));
|
||||
|
||||
// A slot's nodes stand deeper in the body than they did in the caller: expand sees 200 and 100
|
||||
// levels, the finished tree is 300.
|
||||
// A slot's nodes stand deeper in the body than they did in the caller: expand sees 60 and 200
|
||||
// levels, the finished tree about 265. (The body is a stored record, whose own nesting is bounded.)
|
||||
let chain = |levels: usize, inner: Vec<Node>, tag: &str| {
|
||||
let mut node = boxed(&format!("{tag}-bottom"), inner);
|
||||
for level in 0..levels {
|
||||
|
|
@ -393,8 +393,8 @@ fn a_tree_deeper_than_the_limit_is_refused() {
|
|||
}
|
||||
node
|
||||
};
|
||||
let body = composition("c", &[("body", ParamKind::Slot)], chain(200, vec![slot("body")], "b"));
|
||||
let argument = slot_arg("body", vec![chain(100, vec![], "a")]);
|
||||
let body = composition("c", &[("body", ParamKind::Slot)], chain(60, vec![slot("body")], "b"));
|
||||
let argument = slot_arg("body", vec![chain(200, vec![], "a")]);
|
||||
let document = surface(boxed("root", vec![use_of("u", "c", vec![argument])]), &[]);
|
||||
let resolution = run(&document, &state_with(&[body]));
|
||||
refused_for_limit(&resolution);
|
||||
|
|
|
|||
Loading…
Reference in a new issue