1 //! Do not put multiple tests in this file. Tests in the same file run in the 2 //! same executable, so if there are several tests in one file, only one test 3 //! will successfully be able to initialize the logger. 4 5 #[test] multiple_init()6fn multiple_init() { 7 let first_init = logger::init(Default::default()); 8 let second_init = logger::init(Default::default()); 9 10 assert!(first_init); 11 assert!(!second_init); 12 } 13