Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cnotech committed Jul 30, 2024
1 parent 7bd7f23 commit ff4ef66
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions src/types/steps/kill.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::ptr::replace;

use super::TStep;
use crate::types::interpretable::Interpretable;
use crate::types::permissions::PermissionKey;
Expand Down Expand Up @@ -143,17 +141,25 @@ fn test_kill_corelation() {
.is_empty());

// 解释
assert_eq!(StepKill {
target: "${Home}".to_string(),
}.interpret(|s|s.replace("${Home}", "C:/Users/Nep")),StepKill {
target: "${Home}".to_string(),
});
assert_eq!(
StepKill {
target: "${Home}".to_string(),
}
.interpret(|s| s.replace("${Home}", "C:/Users/Nep")),
StepKill {
target: "${Home}".to_string(),
}
);

// 校验
assert!(StepKill {
target: "code.exe".to_string(),
}.verify_self(&"".to_string()).is_ok());
}
.verify_self(&"".to_string())
.is_ok());
assert!(StepKill {
target: "code".to_string(),
}.verify_self(&"".to_string()).is_ok());
}
.verify_self(&"".to_string())
.is_ok());
}

0 comments on commit ff4ef66

Please sign in to comment.