viewer: fmt::plain refuses underscore and exponent forms (test)
check / check (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GWVo7x3UHw5kwCUaWxiejX
This commit is contained in:
swaitsandClaude Opus 5.5 committed 2026-10-14 18:15:50 -06:00
1 parent c1f92ed3e8
commit 612d807f98
1 file changed
+3
+3
View File
@@ -244,6 +244,9 @@ mod tests {
assert_eq!(plain("+1,000.005").as_deref(), Some("1000.005")); assert_eq!(plain("+1,000.005").as_deref(), Some("1000.005"));
assert_eq!(plain("0.00").as_deref(), Some("0.00")); assert_eq!(plain("0.00").as_deref(), Some("0.00"));
assert_eq!(plain("Debit"), None); assert_eq!(plain("Debit"), None);
// Only digits and a point: the decimal parser alone takes these.
assert_eq!(plain("1_000.00"), None);
assert_eq!(plain("1e3"), None);
assert_eq!(plain(""), None); assert_eq!(plain(""), None);
} }
} }