pub async fn file_diff(file_diff_options: FileDiff) -> bool
Expand description
Compare two files and return true if both are different
#Example
use spielrs_diff::{file_diff, diff::FileDiff};
#[tokio::test]
async fn should_return_true_if_both_files_are_not_equal() {
let diff = file_diff(FileDiff {
file: "./mocks/dir_one/vlang/purpose/purpose.txt".to_string(),
file_comp: "./mocks/dir_five/vlang/purpose/purpose.txt".to_string(),
})
.await;
assert_eq!(diff, true);
}