summaryrefslogtreecommitdiffstats
path: root/test cases/rust/9 unit tests/test2.rs
blob: 9623c7c24278e80f2cb2585cf2716494d31e7993 (plain)
1
2
3
4
5
6
7
8
9
10
11
mod test;
use std::env;

fn main() {
    let args: Vec<String> = env::args().collect();
    let first = args[1].parse::<i32>().expect("Invliad value for first argument.");
    let second = args[2].parse::<i32>().expect("Invliad value for second argument.");

    let new = test::add(first, second);
    println!("New value: {}", new);
}