diff --git a/crates/thing-core/tests/resolve.rs b/crates/thing-core/tests/resolve.rs index 319f892..60890a5 100644 --- a/crates/thing-core/tests/resolve.rs +++ b/crates/thing-core/tests/resolve.rs @@ -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, 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);