Fix naming and Tests

This commit is contained in:
Chaoscaot
2023-04-01 11:08:57 +02:00
parent a9a3e70aef
commit b32aac0aba
2 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ impl FromStr for OutputSink {
fn from_str(s: &str) -> Result<Self, Self::Err> { fn from_str(s: &str) -> Result<Self, Self::Err> {
match s { match s {
"std" => Ok(OutputSink::Stdout), "std" => Ok(OutputSink::Stdout),
"err" => OK(OutputSink::Stderr), "err" => Ok(OutputSink::Stderr),
_ => Ok(OutputSink::File(s.to_string())) _ => Ok(OutputSink::File(s.to_string()))
} }
} }

View File

@ -220,7 +220,7 @@ mod tests {
println!("{:?}", matches); println!("{:?}", matches);
assert_eq!(matches.len(), 1); assert_eq!(matches.len(), 1);
assert_eq!(matches[0], (1, 0, 3, 1.0)); assert_eq!(matches[0], Match { x: 1, y: 0, z: 3, percent: 1.0});
} }
#[test] #[test]