Documents: a heading test comment fits ten words
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
4a8f940ea2
commit
acbbe1dbe5
1 file changed
+1
-1
@@ -72,7 +72,7 @@ fn each_heading_level_stands_above_the_next(cx: &mut TestAppContext) {
|
|||||||
cx.debug_bounds(selector).expect("drawn").size.height
|
cx.debug_bounds(selector).expect("drawn").size.height
|
||||||
};
|
};
|
||||||
let heights: Vec<_> = (0..5).map(high).collect();
|
let heights: Vec<_> = (0..5).map(high).collect();
|
||||||
// Level 5 is the body's size; each above it is taller.
|
// Level 5 is body size; each above is taller.
|
||||||
assert!(
|
assert!(
|
||||||
heights.windows(2).all(|pair| pair[0] > pair[1]),
|
heights.windows(2).all(|pair| pair[0] > pair[1]),
|
||||||
"{heights:?}"
|
"{heights:?}"
|
||||||
|
|||||||
Reference in new issue
Block a user