Skip to content

Commit 23f7665

Browse files
committed
Add test for max_level()
1 parent 8cec833 commit 23f7665

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,12 @@ mod test {
608608
assert!(logger.enabled(&create_log("chatty_dependency::module", Level::Warn)));
609609
}
610610

611+
#[test]
612+
fn test_max_level() {
613+
let builder = SimpleLogger::new();
614+
assert_eq!(builder.max_level(), LevelFilter::Trace);
615+
}
616+
611617
#[test]
612618
#[cfg(feature = "timestamps")]
613619
fn test_timestamps_defaults() {

0 commit comments

Comments
 (0)