diff --git a/src/rust_typeset/math_layout.rs b/src/rust_typeset/math_layout.rs index 112a400..f09b0fd 100644 --- a/src/rust_typeset/math_layout.rs +++ b/src/rust_typeset/math_layout.rs @@ -5057,3 +5057,13 @@ fn math_mu_scaled(style: Style, units: Scaled) -> Mm { fn min_mm(left: Mm, right: Mm) -> Mm { if left <= right { left } else { right } } + +#[cfg(test)] +mod line_item_tests { + use super::{InlineMathItem, Mm}; + + #[test] + fn negative_inline_glue_keeps_a_minimum_word_space() { + assert_eq!(InlineMathItem::Glue(Mm::from(-2.0)).width(), Mm::from(0.6)); + } +}