You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
372 B
12 lines
372 B
#[test]
|
|
fn default_init() {
|
|
assert_eq!(logger::init(Default::default()), true);
|
|
|
|
if cfg!(target_os = "android") {
|
|
// android_logger has default log level "off"
|
|
assert_eq!(log::max_level(), log::LevelFilter::Off);
|
|
} else {
|
|
// env_logger has default log level "error"
|
|
assert_eq!(log::max_level(), log::LevelFilter::Error);
|
|
}
|
|
} |