Sha256: b1481f0bb374687c5f24e25113426d2a95f08a45fb8bc41a41e8702bd5a7b4bf
Contents?: true
Size: 468 Bytes
Versions: 36
Compression:
Stored size: 468 Bytes
Contents
extern crate libloading; use libloading::library_filename; use std::path::Path; #[cfg(target_os = "windows")] const EXPECTED: &str = "audioengine.dll"; #[cfg(target_os = "linux")] const EXPECTED: &str = "libaudioengine.so"; #[cfg(target_os = "macos")] const EXPECTED: &str = "libaudioengine.dylib"; #[test] fn test_library_filename() { let name = "audioengine"; let resolved = library_filename(name); assert!(Path::new(&resolved).ends_with(EXPECTED)); }
Version data entries
36 entries across 36 versions & 1 rubygems