init
This commit is contained in:
parent
879a231dd4
commit
913882ae49
@ -7,3 +7,4 @@ edition = "2021"
|
||||
|
||||
[dependencies]
|
||||
Fasching = "0.1.16"
|
||||
whoami = "1.5.1"
|
||||
|
@ -81,11 +81,14 @@ impl Comparer for CompareMode {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::env;
|
||||
use std::fmt::format;
|
||||
use crate::comparemode::CompareMode;
|
||||
|
||||
#[test]
|
||||
fn compare_mode() {
|
||||
let user = env::current_dir();
|
||||
let cm = CompareMode::new(vec![], "".to_string(), "".to_string());
|
||||
let user = whoami::username();
|
||||
let left = format!("/home/{}/test1", user);
|
||||
let right = format!("/home/{}/test2", user);
|
||||
let cm = CompareMode::new(vec![], left, right);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user