wip
This commit is contained in:
parent
209be3f37b
commit
9d86c80eff
1 changed files with 3 additions and 1 deletions
|
|
@ -937,7 +937,7 @@ fn an_unplaced_slot_argument_does_not_count_toward_the_depth_rule() {
|
|||
#[test]
|
||||
fn input_too_deep_to_recurse_into_is_refused_with_its_own_code() {
|
||||
big(|| {
|
||||
let resolution = run(&surface(chain(1100, false), &[]), &MemState::new());
|
||||
let resolution = run(&surface(chain(STACK_TEST_DEPTH, false), &[]), &MemState::new());
|
||||
assert!(resolution.tree.is_none());
|
||||
assert_eq!(resolution.diagnostics.len(), 1, "{:?}", resolution.diagnostics);
|
||||
assert_eq!(resolution.diagnostics[0].code, Code::TooDeepToResolve);
|
||||
|
|
@ -953,3 +953,5 @@ fn a_slot_naming_a_param_of_another_kind_is_invalid() {
|
|||
only(&resolution, Code::CompositionInvalid, Some("u"), "used as a slot");
|
||||
});
|
||||
}
|
||||
|
||||
const STACK_TEST_DEPTH: usize = 1100;
|
||||
|
|
|
|||
Loading…
Reference in a new issue