flowcode-core 0.4.3-alpha

Core execution engine for FlowCode data scripting language
Documentation
#[cfg(test)]
mod tests {
    // Import the specific functions directly into this test module's scope
    use flowcode_core::commands::combine::combine;
    use flowcode_core::commands::predict::predict;
    use flowcode_core::ast::ArgValue;

    #[test]
    fn test_combine() {
        let args = vec![ArgValue::Number(10.0), ArgValue::Number(20.0), ArgValue::Number(30.0)];
        assert_eq!(combine(&args), Ok(60.0));
    }

    #[test]
    fn test_predict() {
        let args1 = vec![
            ArgValue::String("input1".to_string()),
            ArgValue::String("model1".to_string()),
        ];
        assert!(predict(&args1).is_ok());

        let args2 = vec![ArgValue::String("input2".to_string()), ArgValue::String("model2".to_string())];
        assert!(predict(&args2).is_ok());
    }
}

// Removed unused functions