init
This commit is contained in:
parent
879a231dd4
commit
913882ae49
@ -7,3 +7,4 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
Fasching = "0.1.16"
|
Fasching = "0.1.16"
|
||||||
|
whoami = "1.5.1"
|
||||||
|
@ -81,11 +81,14 @@ impl Comparer for CompareMode {
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use std::env;
|
use std::env;
|
||||||
|
use std::fmt::format;
|
||||||
use crate::comparemode::CompareMode;
|
use crate::comparemode::CompareMode;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn compare_mode() {
|
fn compare_mode() {
|
||||||
let user = env::current_dir();
|
let user = whoami::username();
|
||||||
let cm = CompareMode::new(vec![], "".to_string(), "".to_string());
|
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