Grow math delimiters with their body extent
This commit is contained in:
1 parent
15741c0b9c
commit
a6cf56da6c
2 files changed
+12
-1
No files matched your search
@@ -606,6 +606,14 @@ mod tests {
|
||||
assert!(indexed.height > plain.height);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn tall_delimiters_grow_with_their_body() {
|
||||
let font = Cmr10Metrics::default();
|
||||
let plain = layout_math(&parse_math("\\left(a\\right)"), &font);
|
||||
let tall = layout_math(&parse_math("\\left(\\frac{a}{b}\\right)"), &font);
|
||||
assert!(tall.height > plain.height);
|
||||
assert!(tall.width > plain.width);
|
||||
}
|
||||
#[test]
|
||||
fn overset_and_underset_stack_their_arguments() {
|
||||
let font = Cmr10Metrics::default();
|
||||
|
||||
Reference in new issue
Block a user