#[cfg(test)] mod test{ use std::path::PathBuf; use csv_challenge_ex::{ write_csv, load_csv, replace_column, }; #[test] fn test_csv_challenge() { let filename=PathBuf::from( r"F:\Rust_Practise\csv_challenge\src\input\challenge.csv" ); let csv_data=load_csv(filename); assert!(csv_data.is_ok()); let modified_data=replace_column(csv_data.unwrap(),"City","London"); assert!(modified_data.is_ok()); let output_file=write_csv( &modified_data.unwrap(), r"F:\Rust_Practise\csv_challenge\src\output\integratiton_test.csv" ); assert!(output_file.is_ok()); } }