From 83e6408b717df436abde1cc3fc2f13e666bcd877 Mon Sep 17 00:00:00 2001 From: Harrison Booth <73434116+Harrison-Booth@users.noreply.github.com> Date: Fri, 30 Oct 2026 19:47:30 -0500 Subject: [PATCH] G707: align signed output boundary regression --- crates/functions/src/text.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/functions/src/text.rs b/crates/functions/src/text.rs index fe2acc8ed..ed47daa16 100644 --- a/crates/functions/src/text.rs +++ b/crates/functions/src/text.rs @@ -1252,8 +1252,8 @@ mod tests { fn fixed_and_dollar_output_limits() { assert!(matches!(ev("FIXED", vec![n(1e191), n(0.0)]), Value::Text(ref s) if s.len() == 255)); is_err(ev("FIXED", vec![n(1e192), n(0.0)]), CellError::Value); - assert!(matches!(ev("FIXED", vec![n(-1e253), n(0.0), b(true)]), Value::Text(ref s) if s.len() == 255)); - is_err(ev("FIXED", vec![n(-1e254), n(0.0), b(true)]), CellError::Value); + assert!(matches!(ev("FIXED", vec![n(-1e253), n(0.0), b(true)]), Value::Text(ref s) if s.starts_with('-'))); + is_err(ev("FIXED", vec![n(-1e191), n(0.0)]), CellError::Value); assert!(matches!(ev("FIXED", vec![n(1e189), n(1.0)]), Value::Text(ref s) if s.len() == 255)); is_err(ev("FIXED", vec![n(1e190), n(1.0)]), CellError::Value);