diff options
Diffstat (limited to 'third_party/rust/android_logger/tests/config_log_level.rs')
-rw-r--r-- | third_party/rust/android_logger/tests/config_log_level.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/android_logger/tests/config_log_level.rs b/third_party/rust/android_logger/tests/config_log_level.rs new file mode 100644 index 0000000000..864b229f9c --- /dev/null +++ b/third_party/rust/android_logger/tests/config_log_level.rs @@ -0,0 +1,11 @@ +extern crate android_logger; +extern crate log; + +#[test] +fn config_log_level() { + android_logger::init_once( + android_logger::Config::default().with_max_level(log::LevelFilter::Trace), + ); + + assert_eq!(log::max_level(), log::LevelFilter::Trace); +} |