// Snapshot tests for output formatting will go here.
// Using insta for snapshot testing of table output.

#[test]
fn test_format_decimal_basic() {
    // Direct test of output formatting logic
    let s = "123.456789";
    if let Some(dot_pos) = s.find('.') {
        let truncated = &s[..dot_pos + 1 + 4]; // 4 decimal places
        assert_eq!(truncated, "123.4567");
    }
}

#[test]
fn test_format_decimal_no_dot() {
    let s = "12345";
    assert!(s.find('.').is_none());
}

#[test]
fn test_format_decimal_short() {
    let s = "1.5";
    if let Some(dot_pos) = s.find('.') {
        let decimals = s.len() - dot_pos - 1;
        assert!(decimals <= 6);
    }
}
