depyler-core 3.22.0

Core transpilation engine for the Depyler Python-to-Rust transpiler
Documentation
// Generated by: DEPYLER stdlib validation Phase 1
// Module: random - Additional random functions
// Status: GREEN phase - Tests enabled

use depyler_core::transpile_python_to_rust;

// Note: sample, shuffle, gauss, uniform were ALREADY implemented
// This commit adds 1 NEW function: triangular

#[test]
fn test_triangular() {
    let python = r#"
import random

def triangular_random(low: float, high: float, mode: float) -> float:
    return random.triangular(low, high, mode)
"#;

    let result = transpile_python_to_rust(python).expect("Transpilation failed");

    // Should generate triangular random
    assert!(result.contains("Triangular") || result.contains("triangular"));
}

// Total: 1 NEW random function (sample, shuffle, gauss, uniform already existed)
// Coverage: triangular()