mirror of
https://github.com/Prominence/rshred.git
synced 2026-01-09 18:26:41 +03:00
Added simple tests for verbosity enum.
This commit is contained in:
parent
9f5271c613
commit
4785507767
@ -212,3 +212,17 @@ impl PartialEq for Verbosity {
|
|||||||
self.discriminant() == other.discriminant()
|
self.discriminant() == other.discriminant()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
use crate::shred::Verbosity;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn verbosity_check() {
|
||||||
|
assert_eq!(Verbosity::None, Verbosity::None);
|
||||||
|
assert!(Verbosity::None < Verbosity::Low, true);
|
||||||
|
assert!(Verbosity::Low < Verbosity::Average, true);
|
||||||
|
assert!(Verbosity::Average < Verbosity::High, true);
|
||||||
|
assert!(Verbosity::None < Verbosity::High, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user