ultralytics-template-rust 0.0.6

Ultralytics Rust project template showcasing a minimal library and binary layout.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license

use ultralytics_template_rust::{add_numbers, run_example};

#[test]
fn add_numbers_handles_signed_values() {
    assert_eq!(add_numbers(2, 3), 5);
    assert_eq!(add_numbers(-1, 1), 0);
    assert_eq!(add_numbers(-1, -1), -2);
}

#[test]
fn example_output_matches_cli() {
    assert_eq!(run_example(), "Added 1 + 2 = 3");
}