2021-12-03 21:13:19 +00:00
|
|
|
#[cfg(feature = "music_library")]
|
|
|
|
mod music_lib_test {
|
2022-07-01 22:50:07 +01:00
|
|
|
use muss_interpreter::music::*;
|
2021-12-03 21:13:19 +00:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn generate_library() {
|
2022-07-01 22:50:07 +01:00
|
|
|
let mut lib = Library::new();
|
2021-12-03 21:13:19 +00:00
|
|
|
lib.read_path("/home/ngnius/Music", 10).unwrap();
|
|
|
|
println!("generated library size: {}", lib.len());
|
|
|
|
}
|
|
|
|
}
|